mirror of
https://github.com/chillpadclub/selfsteal.git
synced 2026-07-28 04:33:46 +00:00
37 lines
568 B
Caddyfile
37 lines
568 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
|
|
|
|
}
|
|
|
|
|
|
:{$SELF_STEAL_PORT} {
|
|
tls internal
|
|
respond 204
|
|
}
|
|
|
|
#:80 {
|
|
# bind 0.0.0.0
|
|
# respond 204
|
|
#}
|