From 3db2585377da9129b0f4b756f1c521043dbb5931 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 13 Jan 2016 02:06:59 +0100 Subject: uwsgi_params --- custom/ymir-nginx.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'custom/ymir-nginx.nix') 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 @@ { config, lib, pkgs, ... }: let - uwsgi_param = builtins.toFile "uwsgi_param" '' + uwsgi_params = builtins.toFile "uwsgi_param" '' uwsgi_param QUERY_STRING $query_string; uwsgi_param REQUEST_METHOD $request_method; uwsgi_param CONTENT_TYPE $content_type; @@ -96,6 +96,7 @@ in { try_files $uri @cgit; location @cgit { + include ${uwsgi_params}; uwsgi_pass unix:/tmp/cgit.sock; uwsgi_modifier1 9; } -- cgit v1.2.3