m 2 deployment: uwsgi add
This commit is contained in:
parent
16b8fef4f5
commit
63a35e7bd7
16
makefu/2configs/deployment/uwsgi.nix
Normal file
16
makefu/2configs/deployment/uwsgi.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
# more than just nginx config but not enough to become a module
|
||||||
|
with import <stockholm/lib>;
|
||||||
|
let
|
||||||
|
external-ip = config.krebs.build.host.nets.internet.ip4.addr;
|
||||||
|
wsgi-sock = "${config.services.uwsgi.runDir}/uwsgi.sock";
|
||||||
|
elch-sock = "${config.services.uwsgi.runDir}/uwsgi-elch.sock";
|
||||||
|
in {
|
||||||
|
|
||||||
|
services.uwsgi = {
|
||||||
|
enable = true;
|
||||||
|
user = "nginx";
|
||||||
|
plugins = [ "python2" ];
|
||||||
|
instance.type = "emperor";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user