diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-16 14:55:32 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-16 14:55:32 +0100 |
commit | f8d69428cd1d512247bb7fb3296b0833f23687fa (patch) | |
tree | 1b59e46110d8de476271ae52c02ac817967d67b2 | |
parent | 378ec3f4757a0c94c6cdda92dcbd8c0c701d84d5 (diff) | |
download | nixos-f8d69428cd1d512247bb7fb3296b0833f23687fa.tar nixos-f8d69428cd1d512247bb7fb3296b0833f23687fa.tar.gz nixos-f8d69428cd1d512247bb7fb3296b0833f23687fa.tar.bz2 nixos-f8d69428cd1d512247bb7fb3296b0833f23687fa.tar.xz nixos-f8d69428cd1d512247bb7fb3296b0833f23687fa.zip |
ACME without ssl
-rw-r--r-- | custom/ymir-nginx.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index a4a0b492..94e6f1ed 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix | |||
@@ -142,7 +142,11 @@ in { | |||
142 | listen [::]:80; | 142 | listen [::]:80; |
143 | server_name ~^(.*\.)?bragi\.(yggdrasil\.li|141\.li)$; | 143 | server_name ~^(.*\.)?bragi\.(yggdrasil\.li|141\.li)$; |
144 | 144 | ||
145 | return 301 https://$host$request_uri; | 145 | include ${acme}; |
146 | |||
147 | location / { | ||
148 | return 301 https://$host$request_uri; | ||
149 | } | ||
146 | } | 150 | } |
147 | 151 | ||
148 | server { | 152 | server { |