summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-11-07 20:23:21 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2015-11-07 20:23:21 +0100
commit7b599507537554f12f780a6437651b01cd50342f (patch)
tree8827a5125afe9892963746e0bfe5076d06419f82
parent5e87a7ea8396e74db27b65019ba3372f88c3367c (diff)
downloadnixos-7b599507537554f12f780a6437651b01cd50342f.tar
nixos-7b599507537554f12f780a6437651b01cd50342f.tar.gz
nixos-7b599507537554f12f780a6437651b01cd50342f.tar.bz2
nixos-7b599507537554f12f780a6437651b01cd50342f.tar.xz
nixos-7b599507537554f12f780a6437651b01cd50342f.zip
more concise nginx config
-rw-r--r--ymir.nix16
1 files changed, 4 insertions, 12 deletions
diff --git a/ymir.nix b/ymir.nix
index 6e7451ba..532b9cf2 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -201,20 +201,12 @@ in {
201 201
202 ignore_invalid_headers on; 202 ignore_invalid_headers on;
203 203
204 include /etc/nginx/hosts/*.conf;
205 '';
206 };
207 environment.etc."nginx/mime.types" = {
208 source = ./custom/mime.types;
209 };
210 environment.etc."nginx/hosts/dirty-haskell.conf" = {
211 text = ''
212 server { 204 server {
213 listen *:80; 205 listen *:80;
214 listen [::]:80; 206 listen [::]:80;
215 server_name dirty-haskell.org www.dirty-haskell.org; 207 server_name dirty-haskell.org www.dirty-haskell.org;
216 208
217 root /srv/www/dirty-haskell.org; 209 root /srv/www/dirty-haskell.org;
218 } 210 }
219 ''; 211 '';
220 }; 212 };