nginx: fix nextcloud config
parent
4599dd3319
commit
aae3799fa4
|
@ -48,17 +48,18 @@ http {
|
||||||
server {
|
server {
|
||||||
listen 81;
|
listen 81;
|
||||||
listen [::]:81;
|
listen [::]:81;
|
||||||
server_name rain;
|
root /media/store/nextcloud/;
|
||||||
root /usr/share/webapps/nextcloud/;
|
|
||||||
|
|
||||||
client_max_body_size 512M;
|
client_max_body_size 512M;
|
||||||
fastcgi_buffers 64 4K;
|
fastcgi_buffers 64 8K;
|
||||||
|
fastcgi_read_timeout 5m;
|
||||||
|
|
||||||
add_header X-Content-Type-Options nosniff;
|
add_header X-Content-Type-Options nosniff;
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
add_header X-Robots-Tag none;
|
add_header X-Robots-Tag none;
|
||||||
add_header X-Download-Options noopen;
|
add_header X-Download-Options noopen;
|
||||||
add_header X-Permitted-Cross-Domain-Policies none;
|
add_header X-Permitted-Cross-Domain-Policies none;
|
||||||
|
add_header X-Frame-Options sameorigin;
|
||||||
|
|
||||||
location = /robots.txt {
|
location = /robots.txt {
|
||||||
allow all;
|
allow all;
|
||||||
|
|
Loading…
Reference in New Issue