Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
thomasDOTwtf
hub
Commits
dafc5077
Commit
dafc5077
authored
9 months ago
by
Roang
Browse files
Options
Downloads
Patches
Plain Diff
Add SESSION_COOKIE_SECURE to env vars
parent
b070d7b8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hub/settings/base.py
+2
-1
2 additions, 1 deletion
src/hub/settings/base.py
with
2 additions
and
1 deletion
src/hub/settings/base.py
+
2
−
1
View file @
dafc5077
...
@@ -45,6 +45,7 @@ env = environ.FileAwareEnv(
...
@@ -45,6 +45,7 @@ env = environ.FileAwareEnv(
SENTRY_ENVIRONMENT
=
(
str
,
'
production
'
),
SENTRY_ENVIRONMENT
=
(
str
,
'
production
'
),
SENTRY_TRACES_SAMPLE_RATE
=
(
float
,
0.05
),
# create a trace for this percentage of all requests
SENTRY_TRACES_SAMPLE_RATE
=
(
float
,
0.05
),
# create a trace for this percentage of all requests
SENTRY_PROFILES_SAMPLE_RATE
=
(
float
,
0.50
),
# do a profiling for this percentage of _traced_ requests
SENTRY_PROFILES_SAMPLE_RATE
=
(
float
,
0.50
),
# do a profiling for this percentage of _traced_ requests
SESSION_COOKIE_SECURE
=
(
bool
,
True
),
SSO_SECRET
=
(
str
,
None
),
SSO_SECRET
=
(
str
,
None
),
SSO_SECRET_GENERATE
=
(
bool
,
False
),
SSO_SECRET_GENERATE
=
(
bool
,
False
),
PRETIX_ISSUER
=
(
str
,
'
tickets.events.ccc.de
'
),
PRETIX_ISSUER
=
(
str
,
'
tickets.events.ccc.de
'
),
...
@@ -267,7 +268,7 @@ SESSION_COOKIE_NAME = env('COOKIE_NAME')
...
@@ -267,7 +268,7 @@ SESSION_COOKIE_NAME = env('COOKIE_NAME')
SESSION_COOKIE_HTTPONLY
=
True
# session cookie is unavailable to JavaScript (default)
SESSION_COOKIE_HTTPONLY
=
True
# session cookie is unavailable to JavaScript (default)
SESSION_COOKIE_SAMESITE
=
'
Lax
'
# set SameSite=Lax (default)
SESSION_COOKIE_SAMESITE
=
'
Lax
'
# set SameSite=Lax (default)
SESSION_COOKIE_PATH
=
env
(
'
COOKIE_PATH
'
)
or
'
/
'
# use configured path, SESSION_NAME or default '/'
SESSION_COOKIE_PATH
=
env
(
'
COOKIE_PATH
'
)
or
'
/
'
# use configured path, SESSION_NAME or default '/'
SESSION_COOKIE_SECURE
=
True
# mark session cookie as https-only
SESSION_COOKIE_SECURE
=
env
(
'
SESSION_COOKIE_SECURE
'
)
# mark session cookie as https-only
SESSION_SAVE_EVERY_REQUEST
=
False
# no need to update a session on each request (default)
SESSION_SAVE_EVERY_REQUEST
=
False
# no need to update a session on each request (default)
# CSRF Cookie configuration
# CSRF Cookie configuration
...
...
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