Skip to content

Commit

Permalink
Filter out the empty hosts from yves/zed on nginx conf.template
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Apr 28, 2022
1 parent bbac3e7 commit 4900b92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% for store_code, yves_external_host in @('yves.external_hosts') %}
{% for store_code, yves_external_host in @('yves.external_hosts') | filter(v => v is not empty) %}
server {
listen 80;
listen 443 ssl http2;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% for store_code, zed_external_host in @('zed.external_hosts') %}
{% for store_code, zed_external_host in @('zed.external_hosts')|merge(@('zed_api.external_hosts')) | filter(v => v is not empty) %}
server {
listen 80;
listen 443 ssl http2;
Expand Down

0 comments on commit 4900b92

Please sign in to comment.