Add recommended headers to owncloud vhost.
This commit is contained in:
parent
07ca697e63
commit
072a7d9cf8
@ -5,7 +5,7 @@
|
|||||||
user: root
|
user: root
|
||||||
group: root
|
group: root
|
||||||
perm: '400'
|
perm: '400'
|
||||||
format: crt
|
format: crt,ca
|
||||||
notify: 'service nginx restart'
|
notify: 'service nginx restart'
|
||||||
- path: /etc/nginx/ssl/{{ owncloud_domain }}.key
|
- path: /etc/nginx/ssl/{{ owncloud_domain }}.key
|
||||||
user: root
|
user: root
|
||||||
|
@ -23,6 +23,13 @@ server {
|
|||||||
ssl_certificate_key /etc/nginx/ssl/{{ owncloud_domain }}.key;
|
ssl_certificate_key /etc/nginx/ssl/{{ owncloud_domain }}.key;
|
||||||
ssl_certificate /etc/nginx/ssl/{{ owncloud_domain }}.crt;
|
ssl_certificate /etc/nginx/ssl/{{ owncloud_domain }}.crt;
|
||||||
|
|
||||||
|
# Add headers to serve security related headers
|
||||||
|
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
|
||||||
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
add_header X-Frame-Options "SAMEORIGIN";
|
||||||
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
|
add_header X-Robots-Tag none;
|
||||||
|
|
||||||
root /var/www/owncloud/;
|
root /var/www/owncloud/;
|
||||||
|
|
||||||
# set max upload size
|
# set max upload size
|
||||||
|
Loading…
Reference in New Issue
Block a user