This repository was archived by the owner on Aug 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.py
More file actions
65 lines (45 loc) · 1.21 KB
/
config.py
File metadata and controls
65 lines (45 loc) · 1.21 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
# -*- coding: utf-8 -*-
# -----------------------------
# COMMON CONFIG
# -----------------------------
# ENVIRONMENT (development, production)
ENVIRONMENT = 'development'
# DEFAULT URL
DEFAULT_URL = 'http://0.0.0.0:5000'
# LOGGER FORMATTING
LOGGER_FORMAT = '[%(levelname)s][%(filename)s:%(lineno)s] %(message)s'
# -----------------------------
# APP CONFIG
# -----------------------------
# APP DEFAULT PORT (default : 3000)
APP_DEFAULT_PORT = 5000
# APP SECRET KEY
APP_SECRET_KEY = 'APP_SECRET_KEY'
# TOKEN
TOKEN_SCHEME = "bearer"
TOKEN_EXPIRE_TIME = 60 * 60 * 24 * 30 * 6
# -----------------------------
# API CONFIG
# -----------------------------
# API VERSION
API_VERSION = 1
# API ACCEPT HEADER
API_ACCEPT_HEADER = 'application/json'
# -----------------------------
# MOBILE APPLICATION CONFIG
# -----------------------------
# APPLICATION VERSION
APP_VERSION = '1.0.0'
# -----------------------------
# DATABASE CONFIG
# -----------------------------
# DATABASE URL & SETTING
DATABASE = {
'engine': 'postgres',
'host': 'localhost',
'port': '5432',
'user': '',
'password': '',
'database': ''
}
DATABASE_URI = '%(engine)s://%(user)s:%(password)s@%(host)s:%(port)s/%(database)s' % DATABASE