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

8 years ago
  1. server {
  2. listen 443 ssl http2 proxy_protocol;
  3. listen [::]:443 ssl http2 proxy_protocol;
  4. set_real_ip_from {{ hostvars | ip_from_inventory('vm_gateway') }};
  5. real_ip_header proxy_protocol;
  6. ssl_certificate /etc/letsencrypt/live/{{ server_fqdn }}/fullchain.pem;
  7. ssl_certificate_key /etc/letsencrypt/live/{{ server_fqdn }}/privkey.pem;
  8. ssl_session_timeout 5m;
  9. ssl_session_cache shared:MozSSL:10m;
  10. ssl_session_tickets off;
  11. ssl_protocols TLSv1.3;
  12. ssl_prefer_server_ciphers off;
  13. ssl_stapling on;
  14. ssl_stapling_verify on;
  15. add_header Strict-Transport-Security "max-age=63072000" always;
  16. ssl_trusted_certificate /etc/letsencrypt/live/{{ server_fqdn }}/chain.pem;
  17. include /etc/nginx/locations/{{ server_fqdn }}/*.conf;
  18. }