summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/ymir-nginx.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix
index 638e2ac4..861b0720 100644
--- a/custom/ymir-nginx.nix
+++ b/custom/ymir-nginx.nix
@@ -1,7 +1,7 @@
1{ config, lib, pkgs, ... }: 1{ config, lib, pkgs, ... }:
2 2
3let 3let
4 uwsgi_param = builtins.toFile "uwsgi_param" '' 4 uwsgi_params = builtins.toFile "uwsgi_param" ''
5 uwsgi_param QUERY_STRING $query_string; 5 uwsgi_param QUERY_STRING $query_string;
6 uwsgi_param REQUEST_METHOD $request_method; 6 uwsgi_param REQUEST_METHOD $request_method;
7 uwsgi_param CONTENT_TYPE $content_type; 7 uwsgi_param CONTENT_TYPE $content_type;
@@ -96,6 +96,7 @@ in {
96 try_files $uri @cgit; 96 try_files $uri @cgit;
97 97
98 location @cgit { 98 location @cgit {
99 include ${uwsgi_params};
99 uwsgi_pass unix:/tmp/cgit.sock; 100 uwsgi_pass unix:/tmp/cgit.sock;
100 uwsgi_modifier1 9; 101 uwsgi_modifier1 9;
101 } 102 }