Contact page, robots.txt and X-Robots-Tag in the local nginx

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-10 15:33:37 +02:00
co-authored by Claude Sonnet 5.5
parent 51517ef94c
commit 4568509c70
5 changed files with 11 additions and 4 deletions
+1 -1
Submodule 50ohm updated: 874838f525...81edf08d8e
+1 -1
View File
@@ -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`.
+7
View File
@@ -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;
}
}