You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compose.yaml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -56,9 +56,11 @@ services:
56
56
# - "HTTP_PORT=8080" # tcp port to use for http traffic, changing this may break certbot http challenge, default 80
57
57
# - "HTTPS_PORT=8443" # udp and tcp port to use for https traffic, changing this may break certbot http challenge, default 443
58
58
# - "DISABLE_HTTP=true" # prevents nginx from listening on port 80, default false
59
-
# - "LISTEN_PROXY_PROTOCOL=true" # should listeners of http(s) hosts (proxy/redirect/dead and default) use proxy protocol instead of http(s)? default false, overrides DISABLE_H3_QUIC to true
59
+
# - "LISTEN_PROXY_PROTOCOL=true" # should listeners of http(s) hosts (proxy/redirect/dead and default) use proxy protocol instead of http(s)? default false, overrides DISABLE_H3_QUIC, LISTEN_PROXY_PROTOCOL_HTTP and LISTEN_PROXY_PROTOCOL_HTTPS to true
60
+
# - "LISTEN_PROXY_PROTOCOL_HTTP=true" # should listeners of http hosts (proxy/redirect/dead and default) use proxy protocol instead of http? default false
61
+
# - "LISTEN_PROXY_PROTOCOL_HTTPS=true" # should listeners of https hosts (proxy/redirect/dead and default) use proxy protocol instead of https? default false, overrides DISABLE_H3_QUIC to true
60
62
# - "DISABLE_H3_QUIC=true" # prevents nginx from listening on port 443 udp for default host and all your hosts, this will fully disable HTTP/3 and QUIC, even if you enable it inside the UI, not recommended, default false
61
-
# - "NGINX_QUIC_BPF=true" # enables nginx's quic_bpf (https://nginx.org/en/docs/http/ngx_http_v3_module.html#quic_bpf), you must also add caps to the NPMplus container (see cap_add of this compose file) to use this, recommended, default false
63
+
# - "NGINX_QUIC_BPF=true" # enables nginx's quic_bpf (https://nginx.org/en/docs/http/ngx_http_v3_module.html#quic_bpf), you must also add caps to the NPMplus container (see cap_add of this compose file) to use this, default false
62
64
# - "NGINX_LOG_NOT_FOUND=true" # Log 404 errors to the docker logs, unrelated to access logs, default false
63
65
# - "NGINX_WORKER_PROCESSES=8" # value of worker_processes, default and recommended: auto
64
66
# - "NGINX_WORKER_CONNECTIONS=1024" # value of worker_connections, default: 512
@@ -720,18 +732,36 @@ if [ "$ACME_MUST_STAPLE" = "true" ] && [ "$ACME_OCSP_STAPLING" = "false" ]; then
720
732
export ACME_OCSP_STAPLING="true"
721
733
echo"setting ACME_OCSP_STAPLING to true, since ACME_MUST_STAPLE is set to true."
722
734
fi
735
+
723
736
if [ "$LISTEN_PROXY_PROTOCOL"="true" ] && [ "$DISABLE_H3_QUIC"="false" ];then
724
737
export DISABLE_H3_QUIC="true"
725
738
echo"setting DISABLE_H3_QUIC to true, since LISTEN_PROXY_PROTOCOL is set to true."
726
739
fi
740
+
741
+
if [ "$LISTEN_PROXY_PROTOCOL"="true" ] && [ "$LISTEN_PROXY_PROTOCOL_HTTP"="false" ];then
742
+
export LISTEN_PROXY_PROTOCOL_HTTP="true"
743
+
echo"setting LISTEN_PROXY_PROTOCOL_HTTP to true, since LISTEN_PROXY_PROTOCOL is set to true."
744
+
fi
745
+
746
+
if [ "$LISTEN_PROXY_PROTOCOL"="true" ] && [ "$LISTEN_PROXY_PROTOCOL_HTTPS"="false" ];then
747
+
export LISTEN_PROXY_PROTOCOL_HTTPS="true"
748
+
echo"setting LISTEN_PROXY_PROTOCOL_HTTPS to true, since LISTEN_PROXY_PROTOCOL is set to true."
749
+
fi
750
+
751
+
if [ "$LISTEN_PROXY_PROTOCOL_HTTP"!="$LISTEN_PROXY_PROTOCOL_HTTPS" ];then
752
+
echo"LISTEN_PROXY_PROTOCOL_HTTP and LISTEN_PROXY_PROTOCOL_HTTPS are different, please note that only the proxy protocol realip header will be read, but not the X-Forwarded-For http header."
753
+
fi
754
+
727
755
if [ "$NGINX_FORCE_X25519MLKEM768"="true" ] && [ "$NGINX_DISABLE_TLS12"="false" ];then
728
756
export NGINX_DISABLE_TLS12="true"
729
757
echo"setting NGINX_DISABLE_TLS12 to true, since NGINX_FORCE_X25519MLKEM768 is set to true."
730
758
fi
759
+
731
760
if [ "$NGINX_FORCE_X25519MLKEM768"="true" ] && [ "$NGINX_TRUST_SECPR1"="true" ];then
732
761
export NGINX_TRUST_SECPR1="false"
733
762
echo"setting NGINX_TRUST_SECPR1 to false, since NGINX_FORCE_X25519MLKEM768 is set to true."
734
763
fi
764
+
735
765
if [ "$GOA"="true" ] && [ "$LOGROTATE"="false" ];then
736
766
export LOGROTATE="true"
737
767
echo"setting LOGROTATE to true, since GOA is set to true."
0 commit comments