Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
steering
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
Container Registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
steering
Commits
4d897ed7
Commit
4d897ed7
authored
3 years ago
by
jackie / Andrea Ida Malkah Klaura
Browse files
Options
Downloads
Patches
Plain Diff
fix env naming for ALLOWED_HOSTS and hint regarding env lists
parent
9e2f6d99
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.env.example
+4
-2
4 additions, 2 deletions
.env.example
steering/settings.py
+1
-1
1 addition, 1 deletion
steering/settings.py
with
5 additions
and
3 deletions
.env.example
+
4
−
2
View file @
4d897ed7
...
@@ -7,14 +7,16 @@ SECRET_KEY=put-something-awesomely-random-here
...
@@ -7,14 +7,16 @@ SECRET_KEY=put-something-awesomely-random-here
# A comma-separated list of hostnames/IPs Django should listen to. For a
# A comma-separated list of hostnames/IPs Django should listen to. For a
# production setup this will be something like aura.example.org, for a dev
# production setup this will be something like aura.example.org, for a dev
# setup you might just use the default settings.
# setup you might just use the default settings.
# (default: 127.0.0.1, localhost)
# Important: do not put spaces between commas and values!
# (default: 127.0.0.1,localhost)
#ALLOWED_HOSTS=
#ALLOWED_HOSTS=
# A comma-separated list of URIs where the webclients live that should be able
# A comma-separated list of URIs where the webclients live that should be able
# to access the steering API. In particular the dashboard. Might not be needed
# to access the steering API. In particular the dashboard. Might not be needed
# in a production setup if steering and dashboard share the same domain. In
# in a production setup if steering and dashboard share the same domain. In
# a dev setup the defaults might be just fine.
# a dev setup the defaults might be just fine.
# (default: http://127.0.0.1:8080, http://localhost:8080)
# Important: do not put spaces between commas and values!
# (default: http://127.0.0.1:8080,http://localhost:8080)
#CORS_ORIGIN_WHITELIST=
#CORS_ORIGIN_WHITELIST=
# The database settings.
# The database settings.
...
...
This diff is collapsed.
Click to expand it.
steering/settings.py
+
1
−
1
View file @
4d897ed7
...
@@ -30,7 +30,7 @@ ADMINS = ()
...
@@ -30,7 +30,7 @@ ADMINS = ()
MANAGERS
=
ADMINS
MANAGERS
=
ADMINS
# Must be set if DEBUG is False
# Must be set if DEBUG is False
ALLOWED_HOSTS
=
env
.
list
(
'
HOST
NAME
S
'
,
default
=
[
'
127.0.0.1
'
,
'
localhost
'
])
ALLOWED_HOSTS
=
env
.
list
(
'
ALLOWED_
HOSTS
'
,
default
=
[
'
127.0.0.1
'
,
'
localhost
'
])
# Whitelist IPs that access the API
# Whitelist IPs that access the API
CORS_ORIGIN_WHITELIST
=
env
.
list
(
'
CORS_ORIGIN_WHITELIST
'
,
default
=
(
CORS_ORIGIN_WHITELIST
=
env
.
list
(
'
CORS_ORIGIN_WHITELIST
'
,
default
=
(
...
...
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