move mattermostgithub config to /etc/nixos/secret

This commit is contained in:
Sebastien Bourdeauducq 2019-04-26 19:21:00 +08:00
parent c0601e0f65
commit be406bd0c7
2 changed files with 1 additions and 26 deletions

View File

@ -1,25 +0,0 @@
USERNAME = "Github"
ICON_URL = ""
# Repository settings
MATTERMOST_WEBHOOK_URLS = {
'default' : ("chat.m-labs.hk/hooks/hookid", "town-square"),
}
# Ignore specified event actions
GITHUB_IGNORE_ACTIONS = {
}
# Ignore events from specified users
IGNORE_USERS = {
}
# Redirect events to different channels
REDIRECT_EVENTS = {
}
SECRET = ""
SHOW_AVATARS = True
SERVER = {
'hook': "/mattermost-github",
}

View File

@ -7,7 +7,7 @@ in {
pythonPackages = self: [ pkg ];
module = "mattermostgithub:app";
env = [
"MGI_CONFIG_FILE=${./config.py}"
"MGI_CONFIG_FILE=${./../secret/mattermost-github-integration.py}"
];
socket = "${config.services.uwsgi.runDir}/uwsgi.sock";
# allow access from nginx