Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
webomagic-auth
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Pratik Shrivastava
webomagic-auth
Commits
c5600d35
Commit
c5600d35
authored
Jul 15, 2024
by
deepdey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update app config
parent
bca40558
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
app/app_config/config.py
app/app_config/config.py
+2
-14
No files found.
app/app_config/config.py
View file @
c5600d35
...
...
@@ -3,8 +3,8 @@ import logging
import
os
from
datetime
import
date
SERVER_HOST
:
str
=
os
.
environ
.
get
(
'SERVER_HOST'
,
'
127.0.0.1
'
)
SERVER_PORT
:
str
=
os
.
environ
.
get
(
'SERVER_PORT'
,
'50
00
'
)
SERVER_HOST
:
str
=
os
.
environ
.
get
(
'SERVER_HOST'
,
'
0.0.0.0
'
)
SERVER_PORT
:
str
=
os
.
environ
.
get
(
'SERVER_PORT'
,
'50
11
'
)
POSTGRES
:
dict
=
{
'user'
:
os
.
environ
.
get
(
'POSTGRES_USER'
,
'postgres'
),
...
...
@@ -23,21 +23,9 @@ REDIS_PORT = os.environ.get('REDIS_PORT', 6379)
REDIS_DATABASE
=
os
.
environ
.
get
(
'REDIS_DATABASE'
,
0
)
JWT_SECRET_KEY
:
str
=
os
.
environ
.
get
(
'JWT_SECRET_KEY'
,
'f3bca1544d308741c9240f3b6ced1067513ce1351c9fd3971fdafbfe68fffc82'
)
LOGGER_PATH
:
str
=
os
.
environ
.
get
(
'LOGGER_PATH'
,
f
'{os.getcwd()}{os.sep}logs{os.sep}'
)
# Sensetive fields to hide in audit log
SENSITIVE_FIELDS
:
list
=
os
.
environ
.
get
(
'SENSITIVE_FIELDS'
,
[
'password'
,
'confirm_password'
]
)
def
get_logger
(
__name__
:
str
)
->
logging
.
Logger
:
logger
=
logging
.
getLogger
(
__name__
)
logger
.
setLevel
(
logging
.
INFO
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment