1
0
forked from infra/ansible

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
apt: name={{ item }} state=present
with_items:
- php5-apcu
- php5-curl
- php5-fpm
- php5-gd

View File

@ -11,7 +11,7 @@ server {
location / {
return 301 https://{{ owncloud_domain }}$request_uri;
}
}
}
server {
@ -24,7 +24,7 @@ server {
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 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";