Skip to content

Commit

Permalink
Correct missing operator for env function
Browse files Browse the repository at this point in the history
  • Loading branch information
adi90x committed Apr 2, 2020
1 parent 6e44b51 commit 283ad89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ proxy_set_header Proxy "";
{{- $https_ports_stand := host.Containers | getAllLabelValue "" "rap.https_listen_ports" ","}}
{{- $https_ports := concatenateUnique $https_ports_services $https_ports_stand }}

{{- $acme_internal := (env "ACME_INTERNAL") "" }}
{{- $acme_internal := or (env "ACME_INTERNAL") "" }}
server {
server_name _; # This is just an invalid value which will never trigger on a real hostname.
listen 80;
Expand All @@ -291,7 +291,7 @@ server {
location / {
return 503;
}

{{- if (ne $acme_internal "") }}
location /.well-known { # This allows proxy acme requests to pass through to another server.
proxy_pass http://{{ $acme_internal }}/.well-known;
Expand Down

0 comments on commit 283ad89

Please sign in to comment.