Browse Source

Fix, Enable by default, need to pass it to false to disable an intégration

pull/471/head
msansen1 4 years ago
parent
commit
a9c09c8e9d
1 changed files with 21 additions and 21 deletions
  1. +21
    -21
      hc/settings.py

+ 21
- 21
hc/settings.py View File

@ -173,12 +173,12 @@ COMPRESS_CSS_HASHING_METHOD = "content"
RP_ID = os.getenv("RP_ID") RP_ID = os.getenv("RP_ID")
# Discord integration # Discord integration
DISCORD_ENABLED = envbool("DISCORD_ENABLED", "False")
DISCORD_ENABLED = envbool("DISCORD_ENABLED", "True")
DISCORD_CLIENT_ID = os.getenv("DISCORD_CLIENT_ID") DISCORD_CLIENT_ID = os.getenv("DISCORD_CLIENT_ID")
DISCORD_CLIENT_SECRET = os.getenv("DISCORD_CLIENT_SECRET") DISCORD_CLIENT_SECRET = os.getenv("DISCORD_CLIENT_SECRET")
# Email integration # Email integration
EMAIL_ENABLED = envbool("EMAIL_ENABLED", "False")
EMAIL_ENABLED = envbool("EMAIL_ENABLED", "True")
EMAIL_HOST = os.getenv("EMAIL_HOST", "") EMAIL_HOST = os.getenv("EMAIL_HOST", "")
EMAIL_PORT = envint("EMAIL_PORT", "587") EMAIL_PORT = envint("EMAIL_PORT", "587")
EMAIL_HOST_USER = os.getenv("EMAIL_HOST_USER", "") EMAIL_HOST_USER = os.getenv("EMAIL_HOST_USER", "")
@ -187,24 +187,24 @@ EMAIL_USE_TLS = envbool("EMAIL_USE_TLS", "True")
EMAIL_USE_VERIFICATION = envbool("EMAIL_USE_VERIFICATION", "True") EMAIL_USE_VERIFICATION = envbool("EMAIL_USE_VERIFICATION", "True")
# Slack integration # Slack integration
SLACK_ENABLED = envbool("SLACK_ENABLED", "False")
SLACK_ENABLED = envbool("SLACK_ENABLED", "True")
SLACK_CLIENT_ID = os.getenv("SLACK_CLIENT_ID") SLACK_CLIENT_ID = os.getenv("SLACK_CLIENT_ID")
SLACK_CLIENT_SECRET = os.getenv("SLACK_CLIENT_SECRET") SLACK_CLIENT_SECRET = os.getenv("SLACK_CLIENT_SECRET")
# Pushover integration # Pushover integration
PUSHOVER_ENABLED = envbool("PUSHOVER_ENABLED", "False")
PUSHOVER_ENABLED = envbool("PUSHOVER_ENABLED", "True")
PUSHOVER_API_TOKEN = os.getenv("PUSHOVER_API_TOKEN") PUSHOVER_API_TOKEN = os.getenv("PUSHOVER_API_TOKEN")
PUSHOVER_SUBSCRIPTION_URL = os.getenv("PUSHOVER_SUBSCRIPTION_URL") PUSHOVER_SUBSCRIPTION_URL = os.getenv("PUSHOVER_SUBSCRIPTION_URL")
PUSHOVER_EMERGENCY_RETRY_DELAY = int(os.getenv("PUSHOVER_EMERGENCY_RETRY_DELAY", "300")) PUSHOVER_EMERGENCY_RETRY_DELAY = int(os.getenv("PUSHOVER_EMERGENCY_RETRY_DELAY", "300"))
PUSHOVER_EMERGENCY_EXPIRATION = int(os.getenv("PUSHOVER_EMERGENCY_EXPIRATION", "86400")) PUSHOVER_EMERGENCY_EXPIRATION = int(os.getenv("PUSHOVER_EMERGENCY_EXPIRATION", "86400"))
# Pushbullet integration # Pushbullet integration
PUSHBULLET_ENABLED = envbool("PUSHBULLET_ENABLED", "False")
PUSHBULLET_ENABLED = envbool("PUSHBULLET_ENABLED", "True")
PUSHBULLET_CLIENT_ID = os.getenv("PUSHBULLET_CLIENT_ID") PUSHBULLET_CLIENT_ID = os.getenv("PUSHBULLET_CLIENT_ID")
PUSHBULLET_CLIENT_SECRET = os.getenv("PUSHBULLET_CLIENT_SECRET") PUSHBULLET_CLIENT_SECRET = os.getenv("PUSHBULLET_CLIENT_SECRET")
# Telegram integration -- override in local_settings.py # Telegram integration -- override in local_settings.py
TELEGRAM_ENABLED = envbool("TELEGRAM_ENABLED", "False")
TELEGRAM_ENABLED = envbool("TELEGRAM_ENABLED", "True")
TELEGRAM_BOT_NAME = os.getenv("TELEGRAM_BOT_NAME", "ExampleBot") TELEGRAM_BOT_NAME = os.getenv("TELEGRAM_BOT_NAME", "ExampleBot")
TELEGRAM_TOKEN = os.getenv("TELEGRAM_TOKEN") TELEGRAM_TOKEN = os.getenv("TELEGRAM_TOKEN")
@ -215,15 +215,15 @@ TWILIO_FROM = os.getenv("TWILIO_FROM")
TWILIO_USE_WHATSAPP = envbool("TWILIO_USE_WHATSAPP", "False") TWILIO_USE_WHATSAPP = envbool("TWILIO_USE_WHATSAPP", "False")
# PagerDuty # PagerDuty
PAGERDUTY_ENABLED = envbool("PAGERDUTY_ENABLED", "False")
PAGERDUTY_ENABLED = envbool("PAGERDUTY_ENABLED", "True")
PD_VENDOR_KEY = os.getenv("PD_VENDOR_KEY") PD_VENDOR_KEY = os.getenv("PD_VENDOR_KEY")
# Trello # Trello
TRELLO_ENABLED = envbool("TRELLO_ENABLED", "False")
TRELLO_ENABLED = envbool("TRELLO_ENABLED", "True")
TRELLO_APP_KEY = os.getenv("TRELLO_APP_KEY") TRELLO_APP_KEY = os.getenv("TRELLO_APP_KEY")
# Matrix # Matrix
MATRIX_ENABLED = envbool("MATRIX_ENABLED", "False")
MATRIX_ENABLED = envbool("MATRIX_ENABLED", "True")
MATRIX_HOMESERVER = os.getenv("MATRIX_HOMESERVER") MATRIX_HOMESERVER = os.getenv("MATRIX_HOMESERVER")
MATRIX_USER_ID = os.getenv("MATRIX_USER_ID") MATRIX_USER_ID = os.getenv("MATRIX_USER_ID")
MATRIX_ACCESS_TOKEN = os.getenv("MATRIX_ACCESS_TOKEN") MATRIX_ACCESS_TOKEN = os.getenv("MATRIX_ACCESS_TOKEN")
@ -235,21 +235,21 @@ APPRISE_ENABLED = envbool("APPRISE_ENABLED", "False")
SHELL_ENABLED = envbool("SHELL_ENABLED", "False") SHELL_ENABLED = envbool("SHELL_ENABLED", "False")
#Intégration Feature Toggle #Intégration Feature Toggle
MATTERMOST_ENABLED = envbool("MATTERMOST_ENABLED", "False")
OPSGENIE_ENABLED = envbool("OPSGENIE_ENABLED", "False")
PAGERTREE_ENABLED = envbool("PAGERTREE_ENABLED", "False")
PROMETHEUS_ENABLED = envbool("PROMETHEUS_ENABLED", "False")
VICTOROPS_ENABLED = envbool("VICTOROPS_ENABLED", "False")
SMS_ENABLED = envbool("SMS_ENABLED", "False")
CALL_ENABLED = envbool("CALL_ENABLED", "False")
MATTERMOST_ENABLED = envbool("MATTERMOST_ENABLED", "True")
OPSGENIE_ENABLED = envbool("OPSGENIE_ENABLED", "True")
PAGERTREE_ENABLED = envbool("PAGERTREE_ENABLED", "True")
PROMETHEUS_ENABLED = envbool("PROMETHEUS_ENABLED", "True")
VICTOROPS_ENABLED = envbool("VICTOROPS_ENABLED", "True")
SMS_ENABLED = envbool("SMS_ENABLED", "True")
CALL_ENABLED = envbool("CALL_ENABLED", "True")
WEBHOOK_ENABLED = envbool("WEBHOOK_ENABLED", "True") WEBHOOK_ENABLED = envbool("WEBHOOK_ENABLED", "True")
WHATSAPP_ENABLED = envbool("WHATSAPP_ENABLED", "False")
MSTEAMS_ENABLED = envbool("MSTEAMS_ENABLED", "False")
ZULIP_ENABLED = envbool("ZULIP_ENABLED", "False")
SPIKE_ENABLED = envbool("SPIKE_ENABLED", "False")
WHATSAPP_ENABLED = envbool("WHATSAPP_ENABLED", "True")
MSTEAMS_ENABLED = envbool("MSTEAMS_ENABLED", "True")
ZULIP_ENABLED = envbool("ZULIP_ENABLED", "True")
SPIKE_ENABLED = envbool("SPIKE_ENABLED", "True")
# LINE Notify # LINE Notify
LINENOTIFY_ENABLED = envbool("LINENOTIFY_ENABLED", "False")
LINENOTIFY_ENABLED = envbool("LINENOTIFY_ENABLED", "True")
LINENOTIFY_CLIENT_ID = os.getenv("LINENOTIFY_CLIENT_ID") LINENOTIFY_CLIENT_ID = os.getenv("LINENOTIFY_CLIENT_ID")
LINENOTIFY_CLIENT_SECRET = os.getenv("LINENOTIFY_CLIENT_SECRET") LINENOTIFY_CLIENT_SECRET = os.getenv("LINENOTIFY_CLIENT_SECRET")


Loading…
Cancel
Save