Keep Development proxy audit patch free of context whitespace

This commit is contained in:
Nick Beckley 2026-11-02 16:22:51 +00:00
parent d40d45f63a
commit 2f70990a97

View File

@ -1,25 +1,10 @@
--- /var/backups/plotdirector/nginx-dev-before-solver-seo-20261102.conf 2026-07-10 18:35:36.642145185 +0000
+++ /etc/nginx/sites-enabled/plotdirector-dev.conf 2026-11-02 16:20:21.899882455 +0000
@@ -4,6 +4,9 @@
server_name dev.plotdirector.com;
@@ -6,0 +7,3 @@
+ # This Development origin must never enter a public search index.
+ add_header X-Robots-Tag "noindex, follow" always;
+
access_log /var/log/nginx/plotdirector-dev-access.log;
error_log /var/log/nginx/plotdirector-dev-error.log;
@@ -11,10 +14,12 @@
location = /health {
add_header Content-Type text/plain;
@@ -13,0 +17 @@
+ add_header X-Robots-Tag "noindex, follow" always;
return 200 "ok\n";
}
location / {
@@ -17,0 +22 @@
+ proxy_hide_header X-Robots-Tag;
proxy_pass http://127.0.0.1:5050;
proxy_http_version 1.1;
proxy_set_header Host $host;