Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pi-cms
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Institut π
pi-cms
Commits
0fa9cda5
Commit
0fa9cda5
authored
1 year ago
by
Tomáš Valenta
Browse files
Options
Downloads
Patches
Plain Diff
add env allowed hosts
parent
eb836dfb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
env.example
+4
-0
4 additions, 0 deletions
env.example
institut/settings/base.py
+4
-0
4 additions, 0 deletions
institut/settings/base.py
institut/settings/production.py
+0
-1
0 additions, 1 deletion
institut/settings/production.py
with
8 additions
and
1 deletion
env.example
+
4
−
0
View file @
0fa9cda5
DATABASE_URL="postgresql://institut:institut@localhost:5432/postgres"
# ALLOWED_HOSTS=dev.imaniti.org
# SECRET_KEY=asdf
# CSRF_TRUSTED_ORIGINS=https://dev.imaniti.org
This diff is collapsed.
Click to expand it.
institut/settings/base.py
+
4
−
0
View file @
0fa9cda5
...
...
@@ -28,6 +28,10 @@ environ.Env.read_env(os.path.join(BASE_DIR, ".env"))
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
ALLOWED_HOSTS
=
env
.
list
(
"
ALLOWED_HOSTS
"
,
[])
CSRF_TRUSTED_ORIGINS
=
env
.
list
(
"
CSRF_TRUSTED_ORIGINS
"
,
[])
# Application definition
INSTALLED_APPS
=
[
...
...
This diff is collapsed.
Click to expand it.
institut/settings/production.py
+
0
−
1
View file @
0fa9cda5
...
...
@@ -2,7 +2,6 @@ from .base import *
DEBUG
=
False
SECRET_KEY
=
env
.
str
(
"
SECRET_KEY
"
)
ALLOWED_HOSTS
=
env
.
list
(
"
ALLOWED_HOSTS
"
)
try
:
from
.local
import
*
...
...
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