From 1b77f5815e3094866eddd1db4b12214528a14ad8 Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Thu, 24 Sep 2026 18:26:38 +0200 Subject: [PATCH] staging: add X-Robots-Tag noindex header for hms.hms-office.de --- frontend/nginx.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index c195cb7..82cdf15 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -2,7 +2,10 @@ server { listen 3000; server_name _; root /usr/share/nginx/html; - index index.html; + index index index.html; + + # Staging: keep out of search engines (remove when going live on official domain) + add_header X-Robots-Tag "noindex, nofollow" always; location /api/ { proxy_pass http://backend:8000/api/; @@ -31,5 +34,6 @@ server { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { expires 1y; add_header Cache-Control "public, immutable"; + add_header X-Robots-Tag "noindex, nofollow" always; } }