-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp_config_template.py
39 lines (30 loc) · 1.18 KB
/
app_config_template.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
"""Tucker Sync config (template) module.
Used by server and client implementations.
Usage:
Copy app_config_template.py to app_config.py
Then adjust application config settings below.
License:
The MIT License (MIT), see LICENSE.txt for more details.
Copyright:
Copyright (c) 2014 Steven Tucker and Gavin Kromhout.
"""
# Private Application Keys.
# Change both for production.
# Any key listed will be accepted by the server.
# To revoke a key for a group of clients simply remove or change it.
# Two or more keys should be specified (test suite requires at least 2).
# group_a group_b
APP_KEYS = ('private', 'zqX2*I#y9ctNrsCKHU3xWKwgH8#JJhtVlIb980^OVT*YQ')
db_config = {'database': 'tucker_sync_dev',
'user': 'tuckersyncadmin',
'password': 'tuckersyncadmin',
'host': '127.0.0.1'}
# Min password length required from users.
# Test suite requires the default of 14.
USER_PASSWORD_MIN_LEN = 14
LOG_LEVEL = 'DEBUG' # Default: LOG_LEVEL = 'DEBUG'
LOG_FILE_NAME = 'tucker_sync_server.log'
# Set True for production.
# Log to LOG_FILE_NAME if True, stderr if False.
# Passwords will be logged in clear text if False.
PRODUCTION = False