Move to the TLSRef configuration generators Intermediate configuration profile as of 2026-12-04 with HSTS on and OCSP Stapling off. https://configurator.tlsref.org/#server=nginx&version=1.27.3&config=intermediate&openssl=4.0.1&hsts&guideline=6.0 Adjust the nginx roles tls.conf accordingly, modernize the hosts configs use of http2 and remove statements previously used because of OCSP stapling (ssl_trusted_certificate and resolver). Don't do OCSP stapling anymore, since it's deprecated. https://letsencrypt.org/2024/12/05/ending-ocsp
24 lines
736 B
Text
24 lines
736 B
Text
server {
|
|
root /var/www/html;
|
|
server_name lists.hamburg.ccc.de; # managed by Certbot
|
|
|
|
listen [::]:443 ssl; # managed by Certbot
|
|
listen 443 ssl; # managed by Certbot
|
|
|
|
ssl_certificate /etc/letsencrypt/live/lists.hamburg.ccc.de/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/lists.hamburg.ccc.de/privkey.pem; # managed by Certbot
|
|
|
|
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
|
|
add_header Strict-Transport-Security "max-age=63072000" always;
|
|
|
|
location /static {
|
|
alias /opt/mailman/web/static;
|
|
autoindex off;
|
|
}
|
|
|
|
location / {
|
|
uwsgi_pass localhost:8080;
|
|
include uwsgi_params;
|
|
uwsgi_read_timeout 300;
|
|
}
|
|
}
|