mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-19 20:09:16 +00:00
owncloud: update nginx.conf
This commit is contained in:
parent
c3c5b395e1
commit
756a496103
@ -14,10 +14,6 @@ http {
|
|||||||
|
|
||||||
access_log off;
|
access_log off;
|
||||||
error_log /var/log/nginx/error.log error;
|
error_log /var/log/nginx/error.log error;
|
||||||
add_header Strict-Transport-Security "max-age=15552000; includeSubdomains; preload;";
|
|
||||||
add_header X-Frame-Options SAMEORIGIN;
|
|
||||||
add_header X-Content-Type-Options nosniff;
|
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
|
||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 15;
|
keepalive_timeout 15;
|
||||||
@ -61,6 +57,11 @@ http {
|
|||||||
rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect;
|
rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect;
|
||||||
error_page 403 /core/templates/403.php;
|
error_page 403 /core/templates/403.php;
|
||||||
error_page 404 /core/templates/404.php;
|
error_page 404 /core/templates/404.php;
|
||||||
|
|
||||||
|
add_header Strict-Transport-Security "max-age=15552000; includeSubdomains; preload;";
|
||||||
|
add_header X-Frame-Options SAMEORIGIN;
|
||||||
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
|
|
||||||
location = /robots.txt {
|
location = /robots.txt {
|
||||||
allow all;
|
allow all;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user