diff options
-rw-r--r-- | custom/ymir-nginx.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index 0d0ed8ce..a4a0b492 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix | |||
@@ -138,16 +138,16 @@ in { | |||
138 | } | 138 | } |
139 | 139 | ||
140 | server { | 140 | server { |
141 | server *:80; | 141 | listen *:80; |
142 | server [::]: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 | return 301 https://$host$request_uri; |
146 | } | 146 | } |
147 | 147 | ||
148 | server { | 148 | server { |
149 | server *:443 ssl; | 149 | listen *:443 ssl; |
150 | server [::]:443 ssl; | 150 | listen [::]:443 ssl; |
151 | server_name ~^(.*\.)?bragi\.(yggdrasil\.li|141\.li)$; | 151 | server_name ~^(.*\.)?bragi\.(yggdrasil\.li|141\.li)$; |
152 | 152 | ||
153 | include ${acme}; | 153 | include ${acme}; |