diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-13 02:06:59 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-13 02:06:59 +0100 |
commit | 3db2585377da9129b0f4b756f1c521043dbb5931 (patch) | |
tree | 6cb0cd534e26ccff6071242a7944c6db1778389f | |
parent | a8f902b6255ac7a59418b6dd9302f73591e28ed9 (diff) | |
download | nixos-3db2585377da9129b0f4b756f1c521043dbb5931.tar nixos-3db2585377da9129b0f4b756f1c521043dbb5931.tar.gz nixos-3db2585377da9129b0f4b756f1c521043dbb5931.tar.bz2 nixos-3db2585377da9129b0f4b756f1c521043dbb5931.tar.xz nixos-3db2585377da9129b0f4b756f1c521043dbb5931.zip |
uwsgi_params
-rw-r--r-- | custom/ymir-nginx.nix | 3 |
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 | ||
3 | let | 3 | let |
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 | } |