From 8bd8c6d10ccced36fd92f9ad195d2bd0ab344d58 Mon Sep 17 00:00:00 2001 From: MinerYang Date: Wed, 24 Jan 2024 16:46:04 +0800 Subject: [PATCH] [cherry-pick]add v6 port for nginx ad portal config (#19893) add v6 port for nginx ad portal config Signed-off-by: yminer --- make/photon/prepare/templates/nginx/nginx.https.conf.jinja | 1 + make/photon/prepare/templates/portal/nginx.conf.jinja | 1 + 2 files changed, 2 insertions(+) diff --git a/make/photon/prepare/templates/nginx/nginx.https.conf.jinja b/make/photon/prepare/templates/nginx/nginx.https.conf.jinja index 29a57b44c..4c62ae79a 100644 --- a/make/photon/prepare/templates/nginx/nginx.https.conf.jinja +++ b/make/photon/prepare/templates/nginx/nginx.https.conf.jinja @@ -51,6 +51,7 @@ http { server { listen 8443 ssl; + listen [::]:8443 ssl; # server_name harbordomain.com; server_tokens off; # SSL diff --git a/make/photon/prepare/templates/portal/nginx.conf.jinja b/make/photon/prepare/templates/portal/nginx.conf.jinja index 89dc14bc8..01de758fe 100644 --- a/make/photon/prepare/templates/portal/nginx.conf.jinja +++ b/make/photon/prepare/templates/portal/nginx.conf.jinja @@ -17,6 +17,7 @@ http { server { {% if internal_tls.enabled %} listen 8443 ssl; + listen [::]:8443 ssl; # SSL ssl_certificate /etc/harbor/tls/portal.crt; ssl_certificate_key /etc/harbor/tls/portal.key;