-
Notifications
You must be signed in to change notification settings - Fork 14
/
settings.py.example
43 lines (33 loc) · 1.7 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
"""This file contains all user settings of the application"""
# Path to the database file.
DATABASE = 'polls.db'
# Optional list of Mattermost tokens (list of strings e.g. ['abc123', 'xyz321'])
MATTERMOST_TOKENS = None
# URL of the Mattermost server
MATTERMOST_URL = 'http://localhost'
# URL to the image used for the bars.
# If set to None, the poll server will provide the one in img/bar.png
# and resize it automatically to the required size.
# None will only work since Mattermost 5.8 with Image Proxy enabled.
# If None does not work for you, try 'https://raw.githubusercontent.com/M-Mueller/mattermost-poll/master/img/bar.png'
# Only None will work correctly in the native mattermost apps, because resizing images with markdown is not supported.
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