diff options
author | makefu <github@syntax-fehler.de> | 2017-04-11 21:36:10 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-04-11 21:36:10 +0200 |
commit | 80febaf6595800ffde014140c2f60bfecd2d6e28 (patch) | |
tree | 220fc4eed44198c66af156ae9dcbf51022eb1c30 | |
parent | d6d8bb65f143f8371db2c1f999d64e323a717059 (diff) |
m 2 deployment: uwsgi add
-rw-r--r-- | 2configs/deployment/uwsgi.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2configs/deployment/uwsgi.nix b/2configs/deployment/uwsgi.nix new file mode 100644 index 000000000..4ad9961f6 --- /dev/null +++ b/2configs/deployment/uwsgi.nix @@ -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"; + }; +} |