-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsettings.py
29 lines (26 loc) · 903 Bytes
/
settings.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
import grift
import schematics.types as sch_types
class AppConfig(grift.BaseConfig):
SERVICE_NAME = grift.ConfigProperty(
property_type=sch_types.StringType(),
exclude_from_varz=True)
SERVICE_PORT = grift.ConfigProperty(
property_type=sch_types.IntType(),
exclude_from_varz=True)
MYSQL_HOST = grift.ConfigProperty(
property_type=sch_types.StringType(),
exclude_from_varz=True)
MYSQL_PORT = grift.ConfigProperty(
property_type=sch_types.IntType(),
exclude_from_varz=True)
MYSQL_USER = grift.ConfigProperty(
property_type=sch_types.StringType(),
exclude_from_varz=True)
MYSQL_PASSWORD = grift.ConfigProperty(
property_type=sch_types.StringType(),
exclude_from_varz=True)
MYSQL_DATABASE = grift.ConfigProperty(
property_type=sch_types.StringType(),
exclude_from_varz=True)
loaders = [grift.EnvLoader()]
settings = AppConfig(loaders)