-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.py
86 lines (82 loc) · 2.25 KB
/
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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import os
class DefaultConfig(object):
"""Default configuration"""
DEBUG = False
# Database setting
DBHOST = '127.0.0.1'
DBUSER = 'capivara'
DBPASS = 'test'
DBPORT = '5432'
DBNAME = 'green_eyes'
# Application setting
# SERVER_NAME = '0.0.0.0:5000'
SWAGGER_UI_DOC_EXPANSION = 'list'
RESTPLUS_VALIDATE = True
RESTPLUS_MASK_SWAGGER = False
RESTPLUS_ERROR_404_HELP = False
TYPE = 'DEV'
ELASTICURL = 'http://127.0.0.1:9200'
SECRET_KEY = 'testing gyresources api'
IMAGESPATH = os.getcwd()
EXPIRATION_TOKEN = 600
# TF Serving server
TFSHOST = '172.17.0.2'
TFSPORT = '7000'
# Email setting
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USE_SSL = False
MAIL_USERNAME = '[email protected]'
MAIL_PASSWORD = 'ohhjxhswxjdanxvs'
WINDOW_SIZE = 28
CELERY_BROKER_URL = 'amqp://localhost//'
BROKER_POOL_LIMIT = 200
THREADS = 4
CELERYD_CONCURRENCY = 4
CELERYBEAT_SYNC_EVERY = 300
BROKER_HEARTBEAT = 300
BROKER_HEARTBEAT_CHECKRATE = 2.0
PROJECT_ID = ''
STORAGE_BUCKET = ''
JSON_AUTH = ''
class TestConfig(object):
"""Test configuration"""
# Database setting
DBHOST = '127.0.0.1'
DBUSER = 'capivara'
DBPASS = 'test'
DBPORT = '5432'
DBNAME = 'green_eyes'
# Application setting
# SERVER_NAME = '0.0.0.0:5000'
SWAGGER_UI_DOC_EXPANSION = 'list'
RESTPLUS_VALIDATE = True
RESTPLUS_MASK_SWAGGER = False
RESTPLUS_ERROR_404_HELP = False
TYPE = 'TEST'
ELASTICURL = 'http://127.0.0.1:9200'
SECRET_KEY = 'testing gyresources api'
IMAGESPATH = os.getcwd()
EXPIRATION_TOKEN = 240
# TF Serving server
TFSHOST = '172.17.0.2'
TFSPORT = '7000'
# Email setting
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USE_SSL = False
MAIL_USERNAME = '[email protected]'
MAIL_PASSWORD = 'ohhjxhswxjdanxvs'
WINDOW_SIZE = 28
CELERY_BROKER_URL = 'amqp://localhost//'
BROKER_POOL_LIMIT = 200
THREADS = 2
CELERYD_CONCURRENCY = 4
CELERYBEAT_SYNC_EVERY = 300
BROKER_HEARTBEAT = 300
BROKER_HEARTBEAT_CHECKRATE = 2.0
PROJECT_ID = ''
STORAGE_BUCKET = ''
JSON_AUTH = ''