forked from infra/ansible
Optimize owncloud settings (APCu, HSTS).
This commit is contained in:
parent
caaf9f5606
commit
9d1862d7fc
@ -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
|
||||||
|
@ -11,7 +11,7 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 301 https://{{ owncloud_domain }}$request_uri;
|
return 301 https://{{ owncloud_domain }}$request_uri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user