mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/nginx: (bugfix) add host header (#799)
This commit is contained in:
@@ -82,6 +82,7 @@ location {{ location.matchtype }} {{ location.urlpattern }} {
|
||||
{% endif%}
|
||||
{% if location.upstream is defined and (location.php_enable is not defined or location.php_enable != '1') %}
|
||||
{% set upstream = helpers.getUUID(location.upstream) %}
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http{% if upstream.tls_enable == '1' %}s{% endif %}://upstream{{ location.upstream.replace('-','') }};
|
||||
{% if upstream.tls_enable == '1' %}
|
||||
{% if upstream.tls_client_certificate is defined and upstream.tls_client_certificate != '' %}
|
||||
|
||||
Reference in New Issue
Block a user