From 5f7701c2888226c9057e237c2e87765364ffdf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 29 Jan 2024 18:16:07 +0200 Subject: [PATCH] Fix missing listen IP for storage proxy --- .../templates/nginx_conf_liquor-cabinet.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site-cookbooks/kosmos_liquor-cabinet/templates/nginx_conf_liquor-cabinet.erb b/site-cookbooks/kosmos_liquor-cabinet/templates/nginx_conf_liquor-cabinet.erb index 870713b..fb4602e 100644 --- a/site-cookbooks/kosmos_liquor-cabinet/templates/nginx_conf_liquor-cabinet.erb +++ b/site-cookbooks/kosmos_liquor-cabinet/templates/nginx_conf_liquor-cabinet.erb @@ -11,7 +11,7 @@ upstream _<%= @app_name %> { # variables_hash_max_size 2048; server { - listen 80; + listen <%= "#{node['openresty']['listen_ip']}:" if node['openresty']['listen_ip'] %>80; listen [::]:80; server_name <%= @server_name %>; # Redirect to https @@ -21,7 +21,7 @@ server { } server { - listen 443 ssl http2; + listen <%= "#{node['openresty']['listen_ip']}:" if node['openresty']['listen_ip'] %>443 ssl http2; listen [::]:443 ssl http2; server_name <%= @server_name %>;