mirror of
https://github.com/wassname/nginx-proxy-letsencrypt.git
synced 2026-10-29 13:20:53 +08:00
trim whitespace from host and port
based on latest docker-gen
This commit is contained in:
1 parent
f819a4e2e7
commit
1e0b930174
1 file changed
+2
-2
+2
-2
@@ -144,7 +144,7 @@ server {
|
||||
{{ end }}
|
||||
|
||||
location / {
|
||||
proxy_pass {{ $proto }}://{{ $host }};
|
||||
proxy_pass {{ trim $proto }}://{{ trim $host }};
|
||||
{{ if (exists (printf "/etc/nginx/htpasswd/%s" $host)) }}
|
||||
auth_basic "Restricted {{ $host }}";
|
||||
auth_basic_user_file {{ (printf "/etc/nginx/htpasswd/%s" $host) }};
|
||||
@@ -170,7 +170,7 @@ server {
|
||||
{{ end }}
|
||||
|
||||
location / {
|
||||
proxy_pass {{ $proto }}://{{ $host }};
|
||||
proxy_pass {{ trim $proto }}://{{ trim $host }};
|
||||
{{ if (exists (printf "/etc/nginx/htpasswd/%s" $host)) }}
|
||||
auth_basic "Restricted {{ $host }}";
|
||||
auth_basic_user_file {{ (printf "/etc/nginx/htpasswd/%s" $host) }};
|
||||
|
||||
Reference in new issue
Block a user