From 04e1e2a0fd598c095e113ab04bc78650d4840f6b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 18 Jun 2018 10:25:24 +0200 Subject: online.yggdrasil.li --- custom/ymir-nginx.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'custom') diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index 7c479416..40ef2b77 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix @@ -117,6 +117,23 @@ in { root /srv/www/files; } + server { + listen *:80; + listen [::]:80; + listen *:443 ssl; + listen [::]:443 ssl; + server_name ~^(.*\.)?(o|online)\.(yggdrasil\.li|141\.li|praseodym\.org)$; + + include ${acme}; + + location / { + add_header X-NetworkManager-Status online; + add_header Content-Type text/plain; + + return 200 "NetworkManager is online"; + } + } + server { listen *:80; listen [::]:80; -- cgit v1.2.3