From 9c746781b224fd2f33fe81c50d284d05b9cf2fc3 Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Thu, 17 Feb 2022 17:46:32 +0100 Subject: [PATCH] Fix bug with SSL port --- scripts/configure | 2 ++ scripts/start | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/configure b/scripts/configure index 04c1a74..8868337 100755 --- a/scripts/configure +++ b/scripts/configure @@ -172,6 +172,8 @@ if reconfiguring: NGINX_SSL_PORT="443" if 'NGINX_SSL_PORT' in dotenv: NGINX_SSL_PORT=dotenv['NGINX_SSL_PORT'] + if NGINX_SSL_PORT == "80" and NGINX_PORT == "80": + NGINX_SSL_PORT="443" if 'UPDATE_CHANNEL' in dotenv: UPDATE_CHANNEL=dotenv['UPDATE_CHANNEL'] else: diff --git a/scripts/start b/scripts/start index e8959db..d9da226 100755 --- a/scripts/start +++ b/scripts/start @@ -44,7 +44,7 @@ fi # Configure Citadel if it isn't already configured if [[ ! -f "${CITADEL_ROOT}/statuses/configured" ]]; then - NGINX_PORT=${NGINX_PORT:-80} NGINX_SSL_PORT=${NGINX_SSL_PORT:-80} NETWORK="${NETWORK:-mainnet}" "${CITADEL_ROOT}/scripts/configure" + NGINX_PORT=${NGINX_PORT:-80} NGINX_SSL_PORT=${NGINX_SSL_PORT:-443} NETWORK="${NETWORK:-mainnet}" "${CITADEL_ROOT}/scripts/configure" fi echo