summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/deployment
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-04-11 21:36:10 +0200
committermakefu <github@syntax-fehler.de>2017-04-11 21:36:10 +0200
commit63a35e7bd7a5f402d9c6805b9e6d13806b82b118 (patch)
treef2683cc53edbcb3078ebb930271f35991306459a /makefu/2configs/deployment
parent16b8fef4f59583d8fa8ef0e7806ef1b3175bce40 (diff)
m 2 deployment: uwsgi add
Diffstat (limited to 'makefu/2configs/deployment')
-rw-r--r--makefu/2configs/deployment/uwsgi.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/makefu/2configs/deployment/uwsgi.nix b/makefu/2configs/deployment/uwsgi.nix
new file mode 100644
index 000000000..4ad9961f6
--- /dev/null
+++ b/makefu/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";
+ };
+}