staging: add X-Robots-Tag noindex header for hms.hms-office.de

This commit is contained in:
Agent Zero
2026-09-24 18:26:38 +02:00
parent 489419a7d4
commit 1b77f5815e
+5 -1
View File
@@ -2,7 +2,10 @@ server {
listen 3000; listen 3000;
server_name _; server_name _;
root /usr/share/nginx/html; 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/ { location /api/ {
proxy_pass http://backend:8000/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)$ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y; expires 1y;
add_header Cache-Control "public, immutable"; add_header Cache-Control "public, immutable";
add_header X-Robots-Tag "noindex, nofollow" always;
} }
} }