48 lines
894 B
Plaintext
48 lines
894 B
Plaintext
{
|
|
https_port 4123
|
|
default_bind 127.0.0.1
|
|
servers {
|
|
listener_wrappers {
|
|
proxy_protocol {
|
|
allow 127.0.0.1/32
|
|
}
|
|
tls
|
|
}
|
|
}
|
|
auto_https disable_redirects
|
|
}
|
|
https://$VLESS_DOMAIN {
|
|
$CADDY_REVERSE
|
|
|
|
header {
|
|
-Server
|
|
}
|
|
handle_errors {
|
|
header {
|
|
-Server
|
|
}
|
|
}
|
|
}
|
|
http://$VLESS_DOMAIN {
|
|
bind 0.0.0.0
|
|
redir https://$VLESS_DOMAIN{uri} permanent
|
|
|
|
header {
|
|
-Server
|
|
}
|
|
|
|
handle_errors {
|
|
header {
|
|
-Server
|
|
}
|
|
}
|
|
}
|
|
:4123 {
|
|
tls internal
|
|
respond 204
|
|
}
|
|
:80 {
|
|
bind 0.0.0.0
|
|
respond 204
|
|
}
|