From 0209bfaab85273132fd61a343e167bb5642185dc Mon Sep 17 00:00:00 2001 From: garionion Date: Mon, 14 Jun 2021 16:28:56 +0200 Subject: [PATCH] move nginx to dyon dir --- hosts/dyon/configuration.nix | 1 + {common => hosts/dyon}/nginx.nix | 6 ++++++ 2 files changed, 7 insertions(+) rename {common => hosts/dyon}/nginx.nix (84%) diff --git a/hosts/dyon/configuration.nix b/hosts/dyon/configuration.nix index bff1190..522dd3f 100644 --- a/hosts/dyon/configuration.nix +++ b/hosts/dyon/configuration.nix @@ -4,6 +4,7 @@ ../../common/common.nix ../../common/nginx.nix ../../common/netdata.nix + ./nginx.nix ./wireguard.nix ]; diff --git a/common/nginx.nix b/hosts/dyon/nginx.nix similarity index 84% rename from common/nginx.nix rename to hosts/dyon/nginx.nix index afd70f5..2fc6733 100644 --- a/common/nginx.nix +++ b/hosts/dyon/nginx.nix @@ -10,6 +10,12 @@ addresses = [ "[2a02:2970:1002::18]" "46.182.19.48" "[2001:1608:10:25::9249:d69b]" "84.200.70.40" ]; }; appendHttpConfig = '' + server { + listen turn.entr0py.de:80 default; + location ^~ /.well-known/acme-challenge/ { + root /var/www/letsencrypt; + } + } server { listen 0.0.0.0:80 default; listen [::]:80 default;