m 2 deployment: uwsgi add

This commit is contained in:
makefu 2017-04-11 21:36:10 +02:00
parent d6d8bb65f1
commit 80febaf659

View 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";
};
}