-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.py
39 lines (33 loc) · 905 Bytes
/
config.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
# coding:utf-8
__author__ = 'BLUE'
import os
# from application.base.BaseHandler import StaticFileBaseHandler
# Application config
settings = dict(
static_path=os.path.join(os.path.dirname(__file__), "static"),
template_path=os.path.join(os.path.dirname(__file__), "templates"),
cookie_secret="FhLXI+BRRomtuaG47hoXEg3JCdi0BUi8vrpWmoxaoyI=",
xsrf_cookies=False,
debug=True,
login_url='/login'
)
# Database configuration parameters
database_options = dict(
host="94.191.13.239",
db="db_luckdraw",
user="LuckDraw",
password="LuckDraw"
)
# Redis config
redis_options = dict(
host="94.191.13.239",
port=6379,
password='LuckDraw'
)
# logs config
log_path = os.path.join(os.path.dirname(__file__), "logs/log")
log_level = "debug"
# Cipher encryption key
passwd_hash_key = "BLUE"
# 默认密码
passwd_default='123'