diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-06-18 10:25:24 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-06-18 10:25:24 +0200 |
| commit | 04e1e2a0fd598c095e113ab04bc78650d4840f6b (patch) | |
| tree | 2a6a2998cb1b4b9ed9d8b01baa3578142e61d216 /custom | |
| parent | 1fdccf4357f2093222a460c76cdbceac987a74eb (diff) | |
| download | nixos-04e1e2a0fd598c095e113ab04bc78650d4840f6b.tar nixos-04e1e2a0fd598c095e113ab04bc78650d4840f6b.tar.gz nixos-04e1e2a0fd598c095e113ab04bc78650d4840f6b.tar.bz2 nixos-04e1e2a0fd598c095e113ab04bc78650d4840f6b.tar.xz nixos-04e1e2a0fd598c095e113ab04bc78650d4840f6b.zip | |
online.yggdrasil.li
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/ymir-nginx.nix | 17 |
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}; |
