From be406bd0c707b4e4b01faed22dd6902ef360c4ac Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 26 Apr 2019 19:21:00 +0800 Subject: [PATCH] move mattermostgithub config to /etc/nixos/secret --- .../mattermost-github-integration/config.py | 25 ------------------- .../uwsgi-config.nix | 2 +- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 nixbld-etc-nixos/mattermost-github-integration/config.py diff --git a/nixbld-etc-nixos/mattermost-github-integration/config.py b/nixbld-etc-nixos/mattermost-github-integration/config.py deleted file mode 100644 index 319b240..0000000 --- a/nixbld-etc-nixos/mattermost-github-integration/config.py +++ /dev/null @@ -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", -} diff --git a/nixbld-etc-nixos/mattermost-github-integration/uwsgi-config.nix b/nixbld-etc-nixos/mattermost-github-integration/uwsgi-config.nix index 908da4c..d08dcff 100644 --- a/nixbld-etc-nixos/mattermost-github-integration/uwsgi-config.nix +++ b/nixbld-etc-nixos/mattermost-github-integration/uwsgi-config.nix @@ -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