m 2 deployment: uwsgi add
This commit is contained in:
parent
d6d8bb65f1
commit
80febaf659
16
2configs/deployment/uwsgi.nix
Normal file
16
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 a new issue