mirror of https://dev.ccchb.de/ccchb/ansible.git
Enable HSTS for mediawiki
This commit is contained in:
parent
3c1aed2eee
commit
c5ecf1df63
|
@ -40,6 +40,8 @@ mediawiki_nginx_conf: |
|
||||||
ssl_certificate_key /etc/letsencrypt/live/{{ mediawiki_domain }}/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/{{ mediawiki_domain }}/privkey.pem;
|
||||||
ssl_trusted_certificate /etc/letsencrypt/live/{{ mediawiki_domain }}/chain.pem;
|
ssl_trusted_certificate /etc/letsencrypt/live/{{ mediawiki_domain }}/chain.pem;
|
||||||
|
|
||||||
|
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
|
||||||
|
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
|
|
||||||
include snippets/certbot.conf;
|
include snippets/certbot.conf;
|
||||||
|
|
Loading…
Reference in New Issue