Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
783 B

server {
listen 443 ssl http2 proxy_protocol;
listen [::]:443 ssl http2 proxy_protocol;
set_real_ip_from {{ hostvars | ip_from_inventory('vm_gateway') }};
real_ip_header proxy_protocol;
ssl_certificate /etc/letsencrypt/live/{{ server_fqdn }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ server_fqdn }}/privkey.pem;
ssl_session_timeout 5m;
ssl_session_cache shared:MozSSL:10m;
ssl_session_tickets off;
ssl_protocols TLSv1.3;
ssl_prefer_server_ciphers off;
ssl_stapling on;
ssl_stapling_verify on;
add_header Strict-Transport-Security "max-age=63072000" always;
ssl_trusted_certificate /etc/letsencrypt/live/{{ server_fqdn }}/chain.pem;
include /etc/nginx/locations/{{ server_fqdn }}/*.conf;
}