mirror of
https://github.com/neongamerbot-qk/hackclub-nest
synced 2024-11-14 21:19:36 +00:00
38c3ed1967
Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
60 lines
1.7 KiB
JSON
60 lines
1.7 KiB
JSON
{
|
|
"admin": { "listen": "unix//home/neon/caddy-admin.sock" },
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"automatic_https": { "skip": ["spotify.hackclub.app"] },
|
|
"listen": ["unix/.spotify.neon.hackclub.app.webserver.sock|777"],
|
|
"routes": [
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "subroute",
|
|
"routes": [
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "reverse_proxy",
|
|
"upstreams": [{ "dial": "localhost:38275" }]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"match": [{ "host": ["spotify.hackclub.app"] }],
|
|
"terminal": true
|
|
}
|
|
]
|
|
},
|
|
"srv1": {
|
|
"automatic_https": { "skip": ["neon.hackclub.app"] },
|
|
"listen": ["unix/.webserver.sock|777"],
|
|
"routes": [
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "subroute",
|
|
"routes": [
|
|
{
|
|
"handle": [
|
|
{ "handler": "vars", "root": "/home/neon/pub" },
|
|
{
|
|
"handler": "file_server",
|
|
"hide": [".git", ".env", "/home/neon/Caddyfile"]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"match": [{ "host": ["neon.hackclub.app"] }],
|
|
"terminal": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|