From 14efc65b88d7e95b9b167b2547709ff95bd11def Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Thu, 15 Feb 2024 11:25:07 +0100 Subject: [PATCH] NGINX RP: Remove robots tag & nextcloud. --- nginx-rp/reverse-proxy.conf | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/nginx-rp/reverse-proxy.conf b/nginx-rp/reverse-proxy.conf index 3e572e9..dd6935b 100644 --- a/nginx-rp/reverse-proxy.conf +++ b/nginx-rp/reverse-proxy.conf @@ -36,8 +36,6 @@ server { location = /.well-known/matrix/client { default_type application/json; 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" } }'; } @@ -75,7 +73,6 @@ server { add_header Content-Security-Policy "frame-ancestors 'none'"; 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"; } } @@ -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 server { listen 443 ssl http2;