forked from mirrors/nixpkgs
Merge pull request #108045 from mmilata/moinmoin-module-fix
nixos/moinmoin: fix module by switching to eventlet worker
This commit is contained in:
commit
6e10cf2c1c
|
@ -211,7 +211,7 @@ in
|
||||||
environment = let
|
environment = let
|
||||||
penv = python.buildEnv.override {
|
penv = python.buildEnv.override {
|
||||||
# setuptools: https://github.com/benoitc/gunicorn/issues/1716
|
# setuptools: https://github.com/benoitc/gunicorn/issues/1716
|
||||||
extraLibs = [ python.pkgs.gevent python.pkgs.setuptools pkg ];
|
extraLibs = [ python.pkgs.eventlet python.pkgs.setuptools pkg ];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
PYTHONPATH = "${dataDir}/${wikiIdent}/config:${penv}/${python.sitePackages}";
|
PYTHONPATH = "${dataDir}/${wikiIdent}/config:${penv}/${python.sitePackages}";
|
||||||
|
@ -233,7 +233,7 @@ in
|
||||||
ExecStart = ''${python.pkgs.gunicorn}/bin/gunicorn moin_wsgi \
|
ExecStart = ''${python.pkgs.gunicorn}/bin/gunicorn moin_wsgi \
|
||||||
--name gunicorn-${wikiIdent} \
|
--name gunicorn-${wikiIdent} \
|
||||||
--workers ${toString cfg.gunicorn.workers} \
|
--workers ${toString cfg.gunicorn.workers} \
|
||||||
--worker-class gevent \
|
--worker-class eventlet \
|
||||||
--bind unix:/run/moin/${wikiIdent}/gunicorn.sock
|
--bind unix:/run/moin/${wikiIdent}/gunicorn.sock
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue