summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-01-24 11:30:55 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2016-01-24 11:30:55 +0100
commit45d7aaa82b0b8577e507cc8769998911bf8ce527 (patch)
tree4fce7f20109b6e4a268b72fd23f2a9cd4f524142 /custom
parentd1ee3010fd8432ca809923c5acdb1497c52d189f (diff)
downloadnixos-45d7aaa82b0b8577e507cc8769998911bf8ce527.tar
nixos-45d7aaa82b0b8577e507cc8769998911bf8ce527.tar.gz
nixos-45d7aaa82b0b8577e507cc8769998911bf8ce527.tar.bz2
nixos-45d7aaa82b0b8577e507cc8769998911bf8ce527.tar.xz
nixos-45d7aaa82b0b8577e507cc8769998911bf8ce527.zip
praseodym.org nginx
Diffstat (limited to 'custom')
-rw-r--r--custom/ymir-nginx.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix
index 861b0720..7aaa0464 100644
--- a/custom/ymir-nginx.nix
+++ b/custom/ymir-nginx.nix
@@ -16,6 +16,12 @@ let
16 uwsgi_param SERVER_PORT $server_port; 16 uwsgi_param SERVER_PORT $server_port;
17 uwsgi_param SERVER_NAME $server_name; 17 uwsgi_param SERVER_NAME $server_name;
18 ''; 18 '';
19
20 favicon = builtins.toFile "favicon" ''
21 location /favicon.ico {
22 root /srv/www/praseodym.org;
23 }
24 '';
19in { 25in {
20 services.nginx = { 26 services.nginx = {
21 enable = true; 27 enable = true;
@@ -101,6 +107,14 @@ in {
101 uwsgi_modifier1 9; 107 uwsgi_modifier1 9;
102 } 108 }
103 } 109 }
110
111 server {
112 listen *:80;
113 listen [::]:80;
114 server_name _;
115
116 root /srv/www/praseodym.org;
117 }
104 ''; 118 '';
105 }; 119 };
106} 120}