mirror of
https://github.com/chillpadclub/selfsteal.git
synced 2026-07-28 04:33:46 +00:00
new file: .env
new file: Caddyfile new file: docker-compose.yml new file: html/index.html
This commit is contained in:
36
Caddyfile
Normal file
36
Caddyfile
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
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
|
||||
#}
|
||||
Reference in New Issue
Block a user