Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NACSOS Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MCC APSIS
NACSOS
NACSOS Core
Commits
11de681e
Commit
11de681e
authored
2 years ago
by
Tim Repke
Browse files
Options
Downloads
Patches
Plain Diff
add NACSOS_ prefix to env vars to prevent collisions
parent
7357cb77
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#793
passed
2 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/default.env
+11
-11
11 additions, 11 deletions
config/default.env
server/util/config.py
+1
-0
1 addition, 0 deletions
server/util/config.py
with
12 additions
and
11 deletions
config/default.env
+
11
−
11
View file @
11de681e
LOG_CONF_FILE="config/logging.toml"
NACSOS_
LOG_CONF_FILE="config/logging.toml"
SERVER__HOST="localhost"
SERVER__PORT=8081
SERVER__CORS_ORIGINS='["http://localhost:8080", "http://localhost:8081","http://localhost", "http://0.0.0.0:8081", "http://0.0.0.0", "http://127.0.0.1:8081", "http://127.0.0.1"]'
SERVER__HEADER_CORS=true
NACSOS_
SERVER__HOST="localhost"
NACSOS_
SERVER__PORT=8081
NACSOS_
SERVER__CORS_ORIGINS='["http://localhost:8080", "http://localhost:8081","http://localhost", "http://0.0.0.0:8081", "http://0.0.0.0", "http://127.0.0.1:8081", "http://127.0.0.1"]'
NACSOS_
SERVER__HEADER_CORS=true
DB__HOST="localhost"
DB__PORT=5432
DB__USER="root"
DB__PASSWORD="root"
DB__DATABASE="nacsos_core"
NACSOS_
DB__HOST="localhost"
NACSOS_
DB__PORT=5432
NACSOS_
DB__USER="root"
NACSOS_
DB__PASSWORD="root"
NACSOS_
DB__DATABASE="nacsos_core"
USERS__DEFAULT_USER="b0949d0e-e3e1-47c3-9a5d-a2cbbdc2ea23"
\ No newline at end of file
NACSOS_USERS__DEFAULT_USER="b0949d0e-e3e1-47c3-9a5d-a2cbbdc2ea23"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
server/util/config.py
+
1
−
0
View file @
11de681e
...
...
@@ -121,6 +121,7 @@ class Settings(BaseSettings):
class
Config
:
case_sensitive
=
True
env_prefix
=
'
NACSOS_
'
env_nested_delimiter
=
'
__
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment