Skip to content

Commit

Permalink
Filter out the empty hosts from yves/zed on nginx conf.template (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass authored Apr 28, 2022
1 parent d289e45 commit 9d065bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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') | filter(v => v is not empty) %}
server {
listen 80;
listen 443 ssl http2;
Expand Down Expand Up @@ -47,7 +47,7 @@ server {
}
{% endfor %}

{% for store_code, zed_api_external_host in @('zed_api.external_hosts') %}
{% for store_code, zed_api_external_host in @('zed_api.external_hosts') | filter(v => v is not empty) %}
server {
listen 80;
listen 443 ssl http2;
Expand Down

0 comments on commit 9d065bf

Please sign in to comment.