ansible-infra/resources/chaosknoten/lists/nginx/lists.c3lingo.org.conf
June 18f8ae3e7c
modernize nginx configurations accross all hosts
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
2026-12-04 16:56:26 +01:00

24 lines
727 B
Text

server {
root /var/www/html;
server_name lists.c3lingo.org; # managed by Certbot
listen [::]:443 ssl; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/lists.c3lingo.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/lists.c3lingo.org/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;
}
}