From e3b0a2145a6c40c5e6de1ddc72b561efdd2425a1 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 23 Aug 2023 18:34:58 +0200 Subject: [PATCH] add dummy for robots.txt --- docker-stack.yml.template | 2 +- nginx.conf | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docker-stack.yml.template b/docker-stack.yml.template index b6014a3..ddaf25b 100644 --- a/docker-stack.yml.template +++ b/docker-stack.yml.template @@ -23,7 +23,7 @@ services: - traefik.http.routers.redirects.entrypoints=websecure - traefik.http.routers.redirects.service=static - - "traefik.http.routers.redirects.rule=(Host(`pim.kunis.nl`) || Host(`concourse.pim.kunis.nl`) || Host(`rss.pim.kunis.nl`) || Host(`md.pim.kunis.nl`) || Host(`cloud.pim.kunis.nl`) || Host(`dav.pim.kunis.nl`) || Host(`git.pim.kunis.nl`) || Host(`latex.pim.kunis.nl`) || Host(`grades.when.kun.is`))" + - "traefik.http.routers.redirects.rule=(Host(`pim.kunis.nl`) || Host(`concourse.pim.kunis.nl`) || Host(`rss.pim.kunis.nl`) || Host(`md.pim.kunis.nl`) || Host(`cloud.pim.kunis.nl`) || Host(`dav.pim.kunis.nl`) || Host(`git.pim.kunis.nl`) || Host(`latex.pim.kunis.nl`) || Host(`grades.when.kun.is`) || Path(`/robots.txt`))" - traefik.http.routers.redirects.tls=true - traefik.http.routers.redirects.tls.certresolver=letsencrypt diff --git a/nginx.conf b/nginx.conf index 82413d2..8e2cdc5 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,3 +1,10 @@ +server { + listen 80; + server_name _; + + return 418; +} + server { listen 80; server_name pim.kun.is;