This commit is contained in:
Gabenov Stanislav
2026-02-09 20:42:24 +03:00
parent 0a8f11397d
commit a6d2623802
38 changed files with 2198 additions and 1 deletions

View File

@@ -0,0 +1,50 @@
{
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://{{ domain }} {
{% if setup_variant == "marzban" %}
reverse_proxy * unix//run/marzban/marzban.socket
{% else %}
root * /srv
file_server
{% endif %}
header {
-Server
}
handle_errors {
header {
-Server
}
}
}
http://{{ domain }} {
bind 0.0.0.0
redir https://{host}{uri} permanent
header {
-Server
}
handle_errors {
header {
-Server
}
}
}
:4123 {
tls internal
respond 204
}
:80 {
bind 0.0.0.0
respond 204
}