-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
25 lines (19 loc) · 907 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
import os
basedir = os.path.abspath(os.path.dirname(__file__))
if os.environ.get('ENVORIMENT') == "PRD":
swagger_urls = {#"FROSCH_KANJI_BACK": "http://127.0.0.1:8084/swagger",
# "FROSCH_KANJI_BACK": "http://svc-back-pod:8080/swagger", ## gostaria de ser por essa forma internamente no cluster
# "FROSCH_KANJI_BACK": "192.168.65.4:30001/swagger",
"FROSCH_KANJI_BACK": "http://localhost:30001/swagger",
"": ""
}
else:
swagger_urls = {"FROSCH_KANJI_BACK": "http://127.0.0.1:8084/swagger",
"": ""
}
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY')
DEBUG = True
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI')\
or 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False