Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter out the empty hosts from yves/zed on nginx conf.template #685

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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