diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-06-19 22:48:48 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-06-19 22:48:48 +0200 |
| commit | dec6902f7cdac02ccf2eb28885bc42a5775a80b2 (patch) | |
| tree | 3c56e9fedb3512fca72005d4ff1d108e6cc76250 /custom | |
| parent | d147b6c5263b91a6af8400f72bd85b0d62d9a8f5 (diff) | |
| download | nixos-dec6902f7cdac02ccf2eb28885bc42a5775a80b2.tar nixos-dec6902f7cdac02ccf2eb28885bc42a5775a80b2.tar.gz nixos-dec6902f7cdac02ccf2eb28885bc42a5775a80b2.tar.bz2 nixos-dec6902f7cdac02ccf2eb28885bc42a5775a80b2.tar.xz nixos-dec6902f7cdac02ccf2eb28885bc42a5775a80b2.zip | |
git.rheperire.org
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/ymir-nginx.nix | 23 |
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 | } |
