Optimize owncloud settings (APCu, HSTS).

This commit is contained in:
Markus 2016-04-09 22:01:50 +02:00
parent caaf9f5606
commit 9d1862d7fc
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
- name: Install packages - name: Install packages
apt: name={{ item }} state=present apt: name={{ item }} state=present
with_items: with_items:
- php5-apcu
- php5-curl - php5-curl
- php5-fpm - php5-fpm
- php5-gd - php5-gd

View File

@ -24,7 +24,7 @@ server {
ssl_certificate /etc/nginx/ssl/{{ owncloud_domain }}.crt; ssl_certificate /etc/nginx/ssl/{{ owncloud_domain }}.crt;
# Add headers to serve security related headers # Add headers to serve security related headers
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;"; add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
add_header X-Content-Type-Options nosniff; add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN"; add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block"; add_header X-XSS-Protection "1; mode=block";