mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Add nginx X-Forwarded-Port and X-Forwarded-Host (#2237)
Some applications as Keycloak when running behind Nginx proxy need these flags configured proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Host $host; This cause no impact in other applications already configured, at least for my applications
This commit is contained in:
@@ -153,6 +153,8 @@ location {{ location.matchtype }} {{ location.urlpattern }} {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-TLS-Client-Intercepted $tls_intercepted;
|
||||
{% if location.proxy_read_timeout is defined and location.proxy_read_timeout != '' %}
|
||||
proxy_read_timeout {{ location.proxy_read_timeout }}s;
|
||||
|
||||
Reference in New Issue
Block a user