@@ -814,6 +814,14 @@
## collection_interval=30000
+ # Configuration options for Slack
+ # ------------------------------------------------------------------------
+ [[slack]]
+
+ # Turns on Slack application API endpoints
+ ## is_enabled=True
# Configuration options for the request Tracing
# ------------------------------------------------------------------------
[[tracing]]
@@ -820,8 +820,8 @@
[[slack]]
- # Enable slack bot server URLs "/slack/"
- ## enable_slack_integration=True
@@ -707,9 +707,9 @@ SLACK = ConfigSection(
key='slack',
help=_("""Configuration options for slack """),
members=dict(
- ENABLE_SLACK_INTEGRATION=Config(
- key='enable_slack_integration',
- help=_('Enable slack bot server URLs "/slack/"'),
+ IS_ENABLED=Config(
+ key='is_enabled',
+ help=_('Turns on Slack application API endpoints'),
default=True,
type=coerce_bool),
)
@@ -276,7 +276,7 @@ if is_oidc_configured():
]
# Slack botserver URLs
-if SLACK.ENABLE_SLACK_INTEGRATION.get():
+if SLACK.IS_ENABLED.get():
urlpatterns += [
url(r'^slack/', include('desktop.lib.botserver.urls')),