-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env
26 lines (21 loc) · 937 Bytes
/
.env
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
# Display UI elements which send requests to the server even though
# the logged in user does not have sufficient scopes to run the
# endpoint handler methods.
ENABLE_NO_SCOPES_UI = True
REDIS_URL = "redis://localhost"
ALLOW_ORIGINS = "http://localhost"
ALLOW_CREDENTIALS = True
ALLOW_METHODS = "GET, POST"
ALLOW_HEADERS = "*"
MAX_AGE = 3600
SQLALCHEMY_DATABASE_SCHEMA = employees
SQLALCHEMY_DATABASE_URI = mysql+mysqlconnector://root:pcb.2176310315865259@localhost:3306/employees_ext
# Enable this for PostgreSQL.
# SQLALCHEMY_DATABASE_URI = postgresql+psycopg2://postgres:pcb.2176310315865259@localhost/employees
# SQLALCHEMY_DATABASE_URI = mysql+mysqlconnector://behai:<,U#n*m:[email protected]:3306/employees
# to get a string like this run:
# openssl rand -hex 32
SECRET_KEY = "61973d7ebb87638191435feaed4789a0c0ba173bd102f2c1f940344d9745a8be"
ALGORITHM = "HS256"
# 30 * 60 = 30 minutes.
ACCESS_TOKEN_EXPIRE_SECONDS = 1800