From 4568509c702fa62f2d208529908c2482a977b494 Mon Sep 17 00:00:00 2001 From: Carl Vargklint Date: Sat, 10 Oct 2026 15:33:37 +0200 Subject: [PATCH] Contact page, robots.txt and X-Robots-Tag in the local nginx Co-Authored-By: Claude Sonnet 5.5 --- 50ohm | 2 +- 50ohm-ansible | 2 +- 50ohm-contents-dl | 2 +- README.md | 2 +- docker/web/default.conf | 7 +++++++ 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/50ohm b/50ohm index 874838f..81edf08 160000 --- a/50ohm +++ b/50ohm @@ -1 +1 @@ -Subproject commit 874838f5257f4135cd115cc35d0e18d915511939 +Subproject commit 81edf08d8ef145db63d715051351838e576acd41 diff --git a/50ohm-ansible b/50ohm-ansible index 0c1f442..ad00ac2 160000 --- a/50ohm-ansible +++ b/50ohm-ansible @@ -1 +1 @@ -Subproject commit 0c1f44218bf289b349e1ca51b9628a0e5c6e128e +Subproject commit ad00ac2218250b3c5436b6c8925f5620746581af diff --git a/50ohm-contents-dl b/50ohm-contents-dl index f7fa8cf..7c420b2 160000 --- a/50ohm-contents-dl +++ b/50ohm-contents-dl @@ -1 +1 @@ -Subproject commit f7fa8cfbc1188553d6e38d9321eabf7c2984ba94 +Subproject commit 7c420b241bcdc3da597bdf4fe15f85df277dcf05 diff --git a/README.md b/README.md index 7b13895..0fffa1b 100644 --- a/README.md +++ b/README.md @@ -65,4 +65,4 @@ $ git push # pushes the submodule commit ## Deploying to a server -See `50ohm-ansible/README.md`. `vars.yml` needs `site_admin_email` before `site.yml` will run. +See `50ohm-ansible/README.md`. `vars.yml` is filled in for 50ohm.se: point the DNS at the server, list the admins in `users.yml`, then run `site.yml`. diff --git a/docker/web/default.conf b/docker/web/default.conf index da03727..ea75200 100644 --- a/docker/web/default.conf +++ b/docker/web/default.conf @@ -10,4 +10,11 @@ server { location / { try_files $uri $uri/ =404; } + + # Contact details: never indexed (the page also has a robots meta tag and is disallowed in robots.txt) + location = /kontakt.html { + add_header Cache-Control "no-store" always; + add_header X-Robots-Tag "noindex, nofollow, noarchive, nosnippet" always; + try_files $uri =404; + } }