NGINX RP: Remove robots tag & nextcloud.

This commit is contained in:
Viyurz 2024-02-15 11:25:07 +01:00
parent 7056cc80df
commit 14efc65b88

View file

@ -36,8 +36,6 @@ server {
location = /.well-known/matrix/client { location = /.well-known/matrix/client {
default_type application/json; default_type application/json;
add_header Access-Control-Allow-Origin '*'; add_header Access-Control-Allow-Origin '*';
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
add_header Set-Cookie "Path=/; HttpOnly; Secure";
return 200 '{ "m.homeserver": { "base_url": "https://matrix.viyurz.fr" } }'; return 200 '{ "m.homeserver": { "base_url": "https://matrix.viyurz.fr" } }';
} }
@ -75,7 +73,6 @@ server {
add_header Content-Security-Policy "frame-ancestors 'none'"; add_header Content-Security-Policy "frame-ancestors 'none'";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
add_header X-Robots-Tag "noindex, nofollow" always;
add_header Set-Cookie "Path=/; HttpOnly; Secure"; add_header Set-Cookie "Path=/; HttpOnly; Secure";
} }
} }
@ -94,31 +91,6 @@ server {
} }
# Nextcloud
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name nc.viyurz.fr;
location / {
proxy_pass http://localhost:11000;
add_header Set-Cookie "Path=/; HttpOnly; Secure";
# Websocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Accept-Encoding "";
client_body_buffer_size 512k;
proxy_read_timeout 86400s;
client_max_body_size 0;
}
}
# SearxNG # SearxNG
server { server {
listen 443 ssl http2; listen 443 ssl http2;