From dec6902f7cdac02ccf2eb28885bc42a5775a80b2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 19 Jun 2017 22:48:48 +0200 Subject: git.rheperire.org --- custom/ymir-nginx.nix | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'custom/ymir-nginx.nix') 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 { location @cgit { include ${uwsgi_params}; - uwsgi_pass unix:/tmp/cgit.sock; + uwsgi_pass unix:/tmp/git.yggdrasil.li.sock; + uwsgi_modifier1 9; + } + } + + server { + listen *:80; + listen *:443 ssl; + listen [::]:80; + listen [::]:443 ssl; + server_name ~^(.*\.)?git\.rheperire\.org$; + + root ${pkgs.cgit}/cgit; + + try_files $uri @cgit; + + include ${favicon}; + include ${acme}; + + location @cgit { + include ${uwsgi_params}; + uwsgi_pass unix:/tmp/git.rheperire.org.sock; uwsgi_modifier1 9; } } -- cgit v1.2.3