summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-05-04 15:33:15 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-05-04 15:33:15 +0200
commita3e9717c91aa765a21f712a85d5e227b81203627 (patch)
tree7212832113ebf39d9a4a1656f75b1a2abd8f8177 /custom
parent5abbd1d1117fb6a022cac8fdd6b853aa0bce0f26 (diff)
downloadnixos-a3e9717c91aa765a21f712a85d5e227b81203627.tar
nixos-a3e9717c91aa765a21f712a85d5e227b81203627.tar.gz
nixos-a3e9717c91aa765a21f712a85d5e227b81203627.tar.bz2
nixos-a3e9717c91aa765a21f712a85d5e227b81203627.tar.xz
nixos-a3e9717c91aa765a21f712a85d5e227b81203627.zip
fileBin on ymir
Diffstat (limited to 'custom')
-rw-r--r--custom/ymir-nginx.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix
index a36ac79e..1a02d4c7 100644
--- a/custom/ymir-nginx.nix
+++ b/custom/ymir-nginx.nix
@@ -95,6 +95,45 @@ in {
95 listen [::]:80; 95 listen [::]:80;
96 listen *:443 ssl; 96 listen *:443 ssl;
97 listen [::]:443 ssl; 97 listen [::]:443 ssl;
98 server_name ~^(.*\.)?(f|files)\.(yggdrasil\.li|141\.li|praseodym\.org)$;
99
100 include ${favicon};
101 include ${acme};
102
103 root /srv/www/files;
104 }
105
106 server {
107 listen *:80;
108 listen *:443 ssl;
109 listen [::]:80;
110 listen [::]:443 ssl;
111 server_name ~^(.*\.)?git\.yggdrasil\.li$;
112
113 root ${pkgs.cgit}/cgit;
114
115 try_files $uri @cgit;
116
117 include ${favicon};
118 include ${acme};
119
120 location @cgit {
121 include ${uwsgi_params};
122 uwsgi_pass unix:/tmp/cgit.sock;
123 uwsgi_modifier1 9;
124 }
125 }
126 '';
127 };
128}
129
130 }
131
132 server {
133 listen *:80;
134 listen [::]:80;
135 listen *:443 ssl;
136 listen [::]:443 ssl;
98 server_name ~^(.*\.)?dirty-haskell\.org$; 137 server_name ~^(.*\.)?dirty-haskell\.org$;
99 138
100 include ${favicon}; 139 include ${favicon};