summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/deployment/uwsgi.nix
blob: 4ad9961f6271804fa2c6ea6ac2265f239afab9e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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";
  };
}