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 +++++++++++++++++ ymir.nix | 6 +++--- 2 files changed, 20 insertions(+), 3 deletions(-) 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; diff --git a/ymir.nix b/ymir.nix index 0bc54188..8769311d 100644 --- a/ymir.nix +++ b/ymir.nix @@ -16,10 +16,10 @@ let }; }; myDomains = [ "dirty-haskell.org" "www.dirty-haskell.org" "lists.dirty-haskell.org" "l.dirty-haskell.org" - "ftp.141.li" "files.141.li" "f.141.li" "ymir.141.li" "141.li" "www.141.li" "lists.141.li" "l.141.li" "bragi.141.li" + "online.141.li" "o.141.li" "ftp.141.li" "files.141.li" "f.141.li" "ymir.141.li" "141.li" "www.141.li" "lists.141.li" "l.141.li" "bragi.141.li" "ymir.xmpp.li" "xmpp.li" "www.xmpp.li" "lists.xmpp.li" "l.xmpp.li" "muc.xmpp.li" "proxy.xmpp.li" - "ftp.yggdrasil.li" "files.yggdrasil.li" "f.yggdrasil.li" "ymir.yggdrasil.li" "git.yggdrasil.li" "www.yggdrasil.li" "yggdrasil.li" "lists.yggdrasil.li" "l.yggdrasil.li" "bragi.yggdrasil.li" - "ftp.praseodym.org" "files.praseodym.org" "f.praseodym.org" "ymir.praseodym.org" "praseodym.org" "www.praseodym.org" "lists.praseodym.org" "l.praseodym.org" + "online.yggdrasil.li" "o.yggdrasil.li" "ftp.yggdrasil.li" "files.yggdrasil.li" "f.yggdrasil.li" "ymir.yggdrasil.li" "git.yggdrasil.li" "www.yggdrasil.li" "yggdrasil.li" "lists.yggdrasil.li" "l.yggdrasil.li" "bragi.yggdrasil.li" + "online.praseodym.org" "o.praseodym.org" "ftp.praseodym.org" "files.praseodym.org" "f.praseodym.org" "ymir.praseodym.org" "praseodym.org" "www.praseodym.org" "lists.praseodym.org" "l.praseodym.org" "git.rheperire.org" "api.rheperire.org" "www.rheperire.org" "rheperire.org" "ymir.kleen.li" "kleen.li" "www.kleen.li" "ymir.nights.email" "nights.email" "www.nights.email" -- cgit v1.2.3