Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Policy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
OSDU
OSDU Data Platform
Security and Compliance
Policy
Commits
186c73c7
Commit
186c73c7
authored
1 year ago
by
Shane Hutchins
Browse files
Options
Downloads
Patches
Plain Diff
Updating environment variables
parent
bf40af52
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!347
Updating environment variables
Pipeline
#186021
failed
1 year ago
Stage: review
Stage: publish
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/conf.py
+4
-10
4 additions, 10 deletions
app/conf.py
with
4 additions
and
10 deletions
app/conf.py
+
4
−
10
View file @
186c73c7
...
...
@@ -9,15 +9,11 @@ LEGAL_BASE_URL = os.getenv('LEGAL_BASE_URL')
PARTITION_API
=
os
.
getenv
(
'
PARTITION_BASE_URL
'
,
'
http://partition
'
)
+
'
/api/partition/v1
'
# Diagnostics should never be enabled in true production environments
ENABLE_DEV_DIAGNOSTICS
=
False
if
"
ENABLE_DEV_DIAGNOSTICS
"
in
os
.
environ
:
ENABLE_DEV_DIAGNOSTICS
=
True
ENABLE_DEV_DIAGNOSTICS
=
os
.
getenv
(
"
ENABLE_DEV_DIAGNOSTICS
"
,
'
False
'
).
lower
()
in
(
'
true
'
,
'
1
'
,
'
t
'
)
# Diagnostics should never be enabled in true production environments
# Create DUMP outputs - for troubleshooting eval, etc
ENABLE_DEV_DIAGNOSTICS_DUMPS
=
False
if
"
ENABLE_DEV_DIAGNOSTICS_DUMPS
"
in
os
.
environ
:
ENABLE_DEV_DIAGNOSTICS_DUMPS
=
True
ENABLE_DEV_DIAGNOSTICS_DUMPS
=
os
.
getenv
(
"
ENABLE_DEV_DIAGNOSTICS_DUMPS
"
,
'
False
'
).
lower
()
in
(
'
true
'
,
'
1
'
,
'
t
'
)
localhost_opa_url
=
'
http://localhost:8181
'
OPA_URL
=
os
.
getenv
(
'
OPA_URL
'
,
localhost_opa_url
)
...
...
@@ -39,12 +35,10 @@ USER_PERMISION = 'service.policy.user'
ADMIN_PERMISION
=
'
service.policy.admin
'
# Pre Processor
ENABLE_TRANSLATE_PREPROCESSOR
=
True
ENABLE_TRANSLATE_PREPROCESSOR
=
os
.
getenv
(
"
ENABLE_TRANSLATE_PREPROCESSOR
"
,
'
True
'
).
lower
()
in
(
'
true
'
,
'
1
'
,
'
t
'
)
# Admin UI
ENABLE_ADMIN_UI
=
False
if
"
ENABLE_ADMIN_UI
"
in
os
.
environ
:
ENABLE_ADMIN_UI
=
True
ENABLE_ADMIN_UI
=
os
.
getenv
(
"
ENABLE_ADMIN_UI
"
,
'
False
'
).
lower
()
in
(
'
true
'
,
'
1
'
,
'
t
'
)
# OPA bug in OPA Version: 0.43.0 where policy IDs are get a leading /
OPA_BUG_FORCE_SLASH
=
False
...
...
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