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