Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webservices
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
webservices
Commits
20b83357
Commit
20b83357
authored
4 years ago
by
Robin Sonnabend
Browse files
Options
Downloads
Patches
Plain Diff
Optionally allow HTTP Upgrade in proxy locations
parent
12bd5af8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
webserver/templates/locations/proxy.conf
+6
-0
6 additions, 0 deletions
webserver/templates/locations/proxy.conf
with
6 additions
and
0 deletions
webserver/templates/locations/proxy.conf
+
6
−
0
View file @
20b83357
...
...
@@ -37,7 +37,13 @@
{%
endif
%}
{
# 1.1 and empty Connection to enable keepalive #}
proxy_http_version
"{{location.proxy_http_version|default('1.1')}}"
;
{%
if
location
.
allow_upgrade
|
default
(
false
) %}
{
# Upgrade allows usage of websockets #}
proxy_set_header
Upgrade
"$http_upgrade"
;
proxy_set_header
Connection
"$connection_upgrade"
;
{%
else
%}
proxy_set_header
Connection
""
;
{%
endif
%}
{%
if
location
.
proxy_headers
is
defined
%}
{%
for
key
,
value
in
location
.
proxy_headers
.
items
() %}
...
...
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