mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-04 00:13:33 +00:00
Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% if http2_support -%}
|
||||
{% if http2_support == 1 or http2_support == true -%}
|
||||
# Enable Brotli
|
||||
include conf.d/include/brotli.conf;
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
@@ -3,17 +3,18 @@
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
{% if certificate %}
|
||||
{% if certificate and certificate_id > 0 %}
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
{% if hsts_subdomains %}
|
||||
|
||||
listen 443 quic;
|
||||
listen [::]:443 quic;
|
||||
|
||||
{% if hsts_subdomains == 1 or hsts_subdomains == true %}
|
||||
more_set_headers 'Alt-Svc: h3=":443"; ma=86400';
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% unless hsts_subdomains %}
|
||||
{% else %}
|
||||
more_clear_headers "Alt-Svc";
|
||||
{% endunless %}
|
||||
http3 off;
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
server_name {{ domain_names | join: " " }};
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{% include "_header_comment.conf" %}
|
||||
|
||||
{% if enabled %}
|
||||
{% if enabled == 1 or enabled == true %}
|
||||
server {
|
||||
{% include "_listen.conf" %}
|
||||
{% include "_certificates.conf" %}
|
||||
@@ -11,7 +11,7 @@ server {
|
||||
{{ advanced_config }}
|
||||
include conf.d/include/acme-challenge.conf;
|
||||
include conf.d/include/block-exploits.conf;
|
||||
{% if use_default_location %}
|
||||
{% if use_default_location == 1 or use_default_location == true %}
|
||||
location / {
|
||||
include conf.d/include/acme-challenge.conf;
|
||||
root /html/404;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{% include "_header_comment.conf" %}
|
||||
|
||||
{% if enabled %}
|
||||
{% if enabled == 1 or enabled == true %}
|
||||
server {
|
||||
set $forward_scheme {{ forward_scheme }};
|
||||
set $server "{{ forward_host }}";
|
||||
@@ -33,7 +33,7 @@ server {
|
||||
|
||||
{{ advanced_config }}
|
||||
|
||||
{% if use_default_location %}
|
||||
{% if use_default_location == 1 or use_default_location == true %}
|
||||
location / {
|
||||
include conf.d/include/acme-challenge.conf;
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{% include "_header_comment.conf" %}
|
||||
|
||||
{% if enabled %}
|
||||
{% if enabled == 1 or enabled == true %}
|
||||
server {
|
||||
{% include "_listen.conf" %}
|
||||
{% include "_certificates.conf" %}
|
||||
@@ -11,7 +11,7 @@ server {
|
||||
{{ advanced_config }}
|
||||
include conf.d/include/acme-challenge.conf;
|
||||
include conf.d/include/block-exploits.conf;
|
||||
{% if use_default_location %}
|
||||
{% if use_default_location == 1 or use_default_location == true %}
|
||||
location / {
|
||||
include conf.d/include/acme-challenge.conf;
|
||||
{% if preserve_path == 1 or preserve_path == true %}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
# {{ incoming_port }} TCP: {{ tcp_forwarding }} UDP: {{ udp_forwarding }}
|
||||
# ------------------------------------------------------------
|
||||
|
||||
{% if enabled %}
|
||||
{% if enabled == 1 or enabled == true %}
|
||||
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
|
||||
server {
|
||||
listen {{ incoming_port }};
|
||||
|
Reference in New Issue
Block a user