m 2 deployment: uwsgi add

This commit is contained in:
makefu 2017-04-11 21:36:10 +02:00
parent 16b8fef4f5
commit 63a35e7bd7
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

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