1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 09:48:14 +00:00

Merge pull request #2239 from nginx-proxy/fix-rfc-5746

fix: always on session cache on HTTPS fallback listener
This commit is contained in:
Richard Hansen 2023-05-11 00:43:24 -04:00 committed by GitHub
commit 068bf91e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,11 +422,11 @@ server {
{{- if $globals.enable_ipv6 }} {{- if $globals.enable_ipv6 }}
listen [::]:{{ $globals.external_https_port }} ssl http2; {{- /* Do not add `default_server` (see comment above). */}} listen [::]:{{ $globals.external_https_port }} ssl http2; {{- /* Do not add `default_server` (see comment above). */}}
{{- end }} {{- end }}
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;
{{- end }} {{- end }}
{{ $globals.access_log }} {{ $globals.access_log }}
{{- if $globals.default_cert_ok }} {{- if $globals.default_cert_ok }}
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;
ssl_certificate /etc/nginx/certs/default.crt; ssl_certificate /etc/nginx/certs/default.crt;
ssl_certificate_key /etc/nginx/certs/default.key; ssl_certificate_key /etc/nginx/certs/default.key;
{{- else }} {{- else }}