2021-09-07 20:57:03 +00:00
|
|
|
---
|
|
|
|
- hosts: elaine.asininetech.net
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- role: jdauphant.nginx
|
|
|
|
nginx_user: "www-data"
|
|
|
|
nginx_events_params:
|
2022-08-11 18:49:04 +00:00
|
|
|
- worker_connections 1024
|
2021-09-07 20:57:03 +00:00
|
|
|
nginx_http_params:
|
|
|
|
- sendfile "on"
|
|
|
|
- server_names_hash_bucket_size 512
|
|
|
|
nginx_sites:
|
|
|
|
nitter.ca.http:
|
|
|
|
- listen *:80
|
|
|
|
- listen [::]:80
|
|
|
|
- server_name nitter.ca
|
|
|
|
- return 301 "https://$host$request_uri"
|
2021-09-07 21:20:06 +00:00
|
|
|
nitter.ca.https:
|
|
|
|
- listen *:443 ssl http2
|
|
|
|
- listen [::]:443 ssl http2
|
|
|
|
- server_name nitter.ca
|
2022-08-12 02:13:26 +00:00
|
|
|
- access_log off
|
2022-09-14 23:40:20 +00:00
|
|
|
- error_log off
|
2021-09-07 21:20:06 +00:00
|
|
|
- ssl_certificate "/etc/ssl/letsencrypt/nitter.ca.crt"
|
|
|
|
- ssl_certificate_key "/etc/ssl/letsencrypt/nitter.ca.pem"
|
|
|
|
- ssl_stapling on
|
|
|
|
- resolver [::1] valid=300s
|
|
|
|
- add_header Strict-Transport-Security max-age=31536000
|
|
|
|
- location / {
|
|
|
|
proxy_pass http://127.0.0.1:8080;
|
2022-08-11 19:13:24 +00:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Connection "";
|
2022-08-11 21:32:49 +00:00
|
|
|
tcp_nodelay on;
|
2021-09-07 21:20:06 +00:00
|
|
|
}
|
2021-10-15 02:24:57 +00:00
|
|
|
- include snippets/norobots.conf
|
2021-09-07 20:57:03 +00:00
|
|
|
nginx_configs:
|
|
|
|
gzip:
|
|
|
|
- gzip on
|
|
|
|
- gzip_disable msie6
|
|
|
|
- gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript
|
|
|
|
ssl:
|
|
|
|
- ssl_protocols TLSv1.2 TLSv1.3
|
|
|
|
- ssl_prefer_server_ciphers on
|
2022-08-14 21:40:49 +00:00
|
|
|
- ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256'
|
2021-09-07 20:57:03 +00:00
|
|
|
- ssl_session_timeout 1d
|
|
|
|
- ssl_session_cache shared:SSL:50m
|
|
|
|
- ssl_session_tickets off
|