summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/ymir-nginx.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix
index 94e6f1ed..a1de81c3 100644
--- a/custom/ymir-nginx.nix
+++ b/custom/ymir-nginx.nix
@@ -132,7 +132,28 @@ in {
132 132
133 location @cgit { 133 location @cgit {
134 include ${uwsgi_params}; 134 include ${uwsgi_params};
135 uwsgi_pass unix:/tmp/cgit.sock; 135 uwsgi_pass unix:/tmp/git.yggdrasil.li.sock;
136 uwsgi_modifier1 9;
137 }
138 }
139
140 server {
141 listen *:80;
142 listen *:443 ssl;
143 listen [::]:80;
144 listen [::]:443 ssl;
145 server_name ~^(.*\.)?git\.rheperire\.org$;
146
147 root ${pkgs.cgit}/cgit;
148
149 try_files $uri @cgit;
150
151 include ${favicon};
152 include ${acme};
153
154 location @cgit {
155 include ${uwsgi_params};
156 uwsgi_pass unix:/tmp/git.rheperire.org.sock;
136 uwsgi_modifier1 9; 157 uwsgi_modifier1 9;
137 } 158 }
138 } 159 }