Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
71f583eb
Commit
71f583eb
authored
Mar 23, 2017
by
Matt Bruzek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding more proxy options and header to nginx load-balancer.
parent
03aba869
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
apilb.conf
...er/juju/layers/kubeapi-load-balancer/templates/apilb.conf
+12
-4
No files found.
cluster/juju/layers/kubeapi-load-balancer/templates/apilb.conf
View file @
71f583eb
...
@@ -8,7 +8,7 @@ upstream target_service {
...
@@ -8,7 +8,7 @@ upstream target_service {
server
{
server
{
listen
443
;
listen
443
ssl
http2
;
server_name
{{
server_name
}};
server_name
{{
server_name
}};
access_log
/
var
/
log
/
nginx
.
access
.
log
;
access_log
/
var
/
log
/
nginx
.
access
.
log
;
...
@@ -28,9 +28,17 @@ server {
...
@@ -28,9 +28,17 @@ server {
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
X
-
Forwarded
-
Proto
$
scheme
;
proxy_set_header
X
-
Forwarded
-
Proto
$
scheme
;
proxy_ssl_certificate
{{
server_certificate
}};
proxy_set_header
X
-
Forwarded
-
Proto
-
Version
$
http2
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
$
http_connection
;
proxy_set_header
X
-
Stream
-
Protocol
-
Version
$
http_x_stream_protocol_version
;
proxy_ssl_certificate
{{
server_certificate
}};
proxy_ssl_certificate_key
{{
server_key
}};
proxy_ssl_certificate_key
{{
server_key
}};
proxy_pass
https
://
target_service
;
proxy_read_timeout
90
;
add_header
X
-
Stream
-
Protocol
-
Version
$
upstream_http_x_stream_protocol_version
;
proxy_pass
https
://
target_service
;
proxy_read_timeout
90
;
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment