summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-06-19 22:51:06 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-06-19 22:51:06 +0200
commit773979c00eac12535acd2110d6ecbc7b3c14f113 (patch)
treed06f18386098e68d5821ba592adb04f02e6ba45a
parent58820658c4fec6128789ac55ef9f6071464d95a9 (diff)
downloadnixos-773979c00eac12535acd2110d6ecbc7b3c14f113.tar
nixos-773979c00eac12535acd2110d6ecbc7b3c14f113.tar.gz
nixos-773979c00eac12535acd2110d6ecbc7b3c14f113.tar.bz2
nixos-773979c00eac12535acd2110d6ecbc7b3c14f113.tar.xz
nixos-773979c00eac12535acd2110d6ecbc7b3c14f113.zip
uwsgi module handles env
-rw-r--r--ymir.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/ymir.nix b/ymir.nix
index a2aadef9..3979dc70 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -303,7 +303,9 @@ in rec {
303 threads = 8; 303 threads = 8;
304 chdir = "${pkgs.cgit}/cgit"; 304 chdir = "${pkgs.cgit}/cgit";
305 cgi = "${pkgs.cgit}/cgit/cgit.cgi"; 305 cgi = "${pkgs.cgit}/cgit/cgit.cgi";
306 env = "CGIT_CONFIG=/etc/cgit/git.yggdrasil.li"; 306 env = {
307 "CGIT_CONFIG" = "/etc/cgit/git.yggdrasil.li";
308 };
307 socket = "/tmp/git.yggdrasil.li.sock"; 309 socket = "/tmp/git.yggdrasil.li.sock";
308 chmod-socket = "660"; 310 chmod-socket = "660";
309 chown-socket = "uwsgi:nginx"; 311 chown-socket = "uwsgi:nginx";
@@ -314,7 +316,9 @@ in rec {
314 threads = 8; 316 threads = 8;
315 chdir = "${pkgs.cgit}/cgit"; 317 chdir = "${pkgs.cgit}/cgit";
316 cgi = "${pkgs.cgit}/cgit/cgit.cgi"; 318 cgi = "${pkgs.cgit}/cgit/cgit.cgi";
317 env = "CGIT_CONFIG=/etc/cgit/git.rheperire.org"; 319 env = {
320 "CGIT_CONFIG" = "/etc/cgit/git.rheperire.org";
321 };
318 socket = "/tmp/git.rheperire.org.sock"; 322 socket = "/tmp/git.rheperire.org.sock";
319 chmod-socket = "660"; 323 chmod-socket = "660";
320 chown-socket = "uwsgi:nginx"; 324 chown-socket = "uwsgi:nginx";