summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-01-13 02:06:59 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2016-01-13 02:06:59 +0100
commit3db2585377da9129b0f4b756f1c521043dbb5931 (patch)
tree6cb0cd534e26ccff6071242a7944c6db1778389f /custom
parenta8f902b6255ac7a59418b6dd9302f73591e28ed9 (diff)
downloadnixos-3db2585377da9129b0f4b756f1c521043dbb5931.tar
nixos-3db2585377da9129b0f4b756f1c521043dbb5931.tar.gz
nixos-3db2585377da9129b0f4b756f1c521043dbb5931.tar.bz2
nixos-3db2585377da9129b0f4b756f1c521043dbb5931.tar.xz
nixos-3db2585377da9129b0f4b756f1c521043dbb5931.zip
uwsgi_params
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 }