Optimize owncloud settings (APCu, HSTS).
This commit is contained in:
parent
caaf9f5606
commit
9d1862d7fc
@ -3,6 +3,7 @@
|
||||
- name: Install packages
|
||||
apt: name={{ item }} state=present
|
||||
with_items:
|
||||
- php5-apcu
|
||||
- php5-curl
|
||||
- php5-fpm
|
||||
- php5-gd
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user