1
0
Fork 0
it-infra/nixbld-etc-nixos/mattermost-github-integration/uwsgi-config.nix

16 lines
353 B
Nix
Raw Permalink Normal View History

2020-06-20 17:54:21 +08:00
{ config, pkgs }:
let
pkg = pkgs.callPackage ./pkg.nix {};
in {
type = "normal";
pythonPackages = self: [ pkg ];
module = "mattermostgithub:app";
env = [
"MGI_CONFIG_FILE=${./../secret/mattermost-github-integration.py}"
];
socket = "${config.services.uwsgi.runDir}/uwsgi-mgi.sock";
# allow access from nginx
chmod-socket = 666;
}