/
configuration_default.py
53 lines (40 loc) · 1.3 KB
/
configuration_default.py
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
46
47
48
49
50
51
52
53
# Millionaire Makers Drawing Platform
# https://www.reddit.com/r/millionairemakers
#
# Configuration file
#
# Contact /u/minlite for comments/suggestions
# Basic auth credentials used for logging in to the drawing backend
BASIC_AUTH_USERNAME = ''
BASIC_AUTH_PASSWORD = ''
# Reddit application credentials used for oAuth
REDDIT_CLIENT_ID = ''
REDDIT_CLIENT_SECRET = ''
REDDIT_REDIRECT_URI = 'http://127.0.0.1:65010/authorize_callback'
# User agent value submitted to Reddit
# Should be unique for each client
REDDIT_USER_AGENT = 'MillionaireMakers Drawing Service v1. \n See /r/millionairemakers \n Contact /u/minlite for concerns.'
# Delay between each request to Reddit
REDDIT_API_REQUEST_DELAY = 1.0
# Dropbox application credentials used for uploading files
DROPBOX_ACCESS_TOKEN = ''
# When enabled, limits moderation to one user
LIMIT_MODERATION = False
# Username allowed to moderate drawings (used with LIMIT_MODERATION set to True)
MODERATOR_USERNAME = ''
# Winner block
# Each block ~ 10 minutes
WINNER_BLOCK = 3
# Number of confirmation blocks
# Each block ~ 10 minutes
CONFIRMATION_BLOCKS = 3
# Web server host
WEB_SERVER_HOST = "0.0.0.0"
# Web server port
WEB_SERVER_PORT = 65010
# Debug mode
DEBUG = False
# Log file name
LOG_FILE_NAME = 'webserver.log'
# Log cache lifetime in seconds
LOG_CACHE_LIFETIME = 30