forked from M-Mueller/mattermost-poll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py.example
45 lines (33 loc) · 1.46 KB
/
settings.py.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"""This file contains all user settings of the application"""
# Path to the database file.
DATABASE = 'polls.db'
# Address to listen on
WEBSERVER_ADDRESS = '0.0.0.0'
# Port of the webserver
WEBSERVER_PORT = 5000
# Optional list of Mattermost tokens (list of strings e.g. ['abc123', 'xyz321'])
MATTERMOST_TOKENS = None
# URL of the Mattermost server
MATTERMOST_URL = 'http://localhost'
# Optional URL to the image used for the bars.
# If set to None, the poll server will provide the one in img/bar.png.
BAR_IMG_URL = None
# Private access token of some user.
# Required to resolve username in 'public' polls.
# https://docs.mattermost.com/developer/personal-access-tokens.html
MATTERMOST_PA_TOKEN = None
# Set default options for all created polls. The user will always have an
# option to disable any default options (e.g. through '--noprogress').
PUBLIC_BY_DEFAULT = False
PROGRESS_BY_DEFAULT = True
BARS_BY_DEFAULT = True
# Set default question and vote possibilities, if the user does not provide
# any of those (i.e., if the user just writes the slash command).
# If these options are not set, the default behavior is to show the help message.
# DEFAULT_QUESTION = "What is your favorite color?"
# DEFAULT_VOTES = ["Green", "Blue", "Red"]
# Uncomment the following lines to enable file logging:
#import logging
#logging.basicConfig(filename='poll.log', level=logging.DEBUG)
# Needs to be enabled if running behind a proxy server with HTTPS (see issue #21)
APPLY_PROXY_FIX = False