mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
uwsgi service: update documentation
This commit is contained in:
parent
e48c991131
commit
b6c49abba0
1 changed files with 9 additions and 6 deletions
|
@ -113,21 +113,24 @@ in {
|
||||||
vassals = {
|
vassals = {
|
||||||
moin = {
|
moin = {
|
||||||
type = "normal";
|
type = "normal";
|
||||||
python2Packages = self: with self; [ moinmoin ];
|
pythonPackages = self: with self; [ moinmoin ];
|
||||||
socket = "${config.services.uwsgi.runDir}/uwsgi.sock";
|
socket = "${config.services.uwsgi.runDir}/uwsgi.sock";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
uWSGI configuration. This awaits either a path to file or a set which will be made into one.
|
uWSGI configuration. It awaits an attribute <literal>type</literal> inside which can be either
|
||||||
If given a set, it awaits an attribute <literal>type</literal> which can be either <literal>normal</literal>
|
<literal>normal</literal> or <literal>emperor</literal>.
|
||||||
or <literal>emperor</literal>.
|
|
||||||
|
For <literal>normal</literal> mode you can specify <literal>pythonPackages</literal> as a function
|
||||||
|
from libraries set into a list of libraries. <literal>pythonpath</literal> will be set accordingly.
|
||||||
|
|
||||||
For <literal>normal</literal> mode you can specify <literal>python2Packages</literal> and
|
|
||||||
<literal>python3Packages</literal> as functions from libraries set into lists of libraries.
|
|
||||||
For <literal>emperor</literal> mode, you should use <literal>vassals</literal> attribute
|
For <literal>emperor</literal> mode, you should use <literal>vassals</literal> attribute
|
||||||
which should be either a set of names and configurations or a path to a directory.
|
which should be either a set of names and configurations or a path to a directory.
|
||||||
|
|
||||||
|
Other attributes will be used in configuration file as-is. Notice that you can redefine
|
||||||
|
<literal>plugins</literal> setting here.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue