Files
selfsteal/Caddyfile
ChillPad VPN f99c2c1aa7 modified: .env
modified:   Caddyfile
2026-08-30 22:56:02 +00:00

48 lines
786 B
Caddyfile

{
https_port {$SELF_STEAL_PORT}
default_bind 127.0.0.1
servers {
listener_wrappers {
proxy_protocol {
allow 127.0.0.1/32
}
tls
}
}
auto_https disable_redirects
}
http://{$SELF_STEAL_DOMAIN} {
bind 0.0.0.0
redir https://{$SELF_STEAL_DOMAIN}{uri} permanent
}
https://{$SELF_STEAL_DOMAIN} {
root * /var/www/html
try_files {path} /index.html
file_server
}
http://{$SELF_STEAL_DOMAIN_2} {
bind 0.0.0.0
redir https://{$SELF_STEAL_DOMAIN_2}{uri} permanent
}
https://{$SELF_STEAL_DOMAIN_2} {
root * /var/www/html
try_files {path} /index.html
file_server
}
:{$SELF_STEAL_PORT} {
tls internal
respond 204
}
#:80 {
# bind 0.0.0.0
# respond 204
#}