Add IPv6 to all OpenResty sites

Co-authored-by: Greg Karékinian <greg@karekinian.com>
This commit is contained in:
2026-02-12 17:05:14 +04:00
parent 9f862a89cc
commit 0933e9caa0
27 changed files with 30 additions and 27 deletions

View File

@@ -12,7 +12,7 @@ upstream _ipfs_api {
server {
server_name <%= @server_name %>;
listen <%= "#{node['openresty']['listen_ip']}:" if node['openresty']['listen_ip'] %>443 ssl http2;
listen [::]:443 ssl http2;
listen <%= "[#{node['openresty']['listen_ipv6']}]" %>:443 ssl http2;
access_log /var/log/nginx/<%= @server_name %>.access.log;
error_log /var/log/nginx/<%= @server_name %>.error.log;