summaryrefslogtreecommitdiff
path: root/custom/ymir-nginx.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/ymir-nginx.nix')
-rw-r--r--custom/ymir-nginx.nix17
1 files changed, 17 insertions, 0 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
@@ -122,6 +122,23 @@ in {
122 listen [::]:80; 122 listen [::]:80;
123 listen *:443 ssl; 123 listen *:443 ssl;
124 listen [::]:443 ssl; 124 listen [::]:443 ssl;
125 server_name ~^(.*\.)?(o|online)\.(yggdrasil\.li|141\.li|praseodym\.org)$;
126
127 include ${acme};
128
129 location / {
130 add_header X-NetworkManager-Status online;
131 add_header Content-Type text/plain;
132
133 return 200 "NetworkManager is online";
134 }
135 }
136
137 server {
138 listen *:80;
139 listen [::]:80;
140 listen *:443 ssl;
141 listen [::]:443 ssl;
125 server_name ~^(.*\.)?dirty-haskell\.org$; 142 server_name ~^(.*\.)?dirty-haskell\.org$;
126 143
127 include ${favicon}; 144 include ${favicon};