Skip to content

Commit

Permalink
Update install-nginx.sh
Browse files Browse the repository at this point in the history
Do not hard-code server name
  • Loading branch information
hyanwong authored Apr 8, 2024
1 parent b68217b commit 3fd883b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ NGINX_DHPARAM_PATH="${NGINX_PATH}/dhparam.pem"
# Generate NGINX_DHPARAM
[ -e "${NGINX_DHPARAM_PATH}" ] || openssl dhparam -out "${NGINX_DHPARAM_PATH}" 4096

if [ ! -f "${NGINX_CERT_PATH}/onezoom.org/privkey" ]; then
if [ ! -f "${NGINX_CERT_PATH}/${PROJECT_PATH}/privkey" ]; then
# Fall back to self-signed bootstrap-cert
NGINX_CERT_PATH="${NGINX_PATH}/snakeoil-certs/"
NGINX_CHALLENGE_PATH="/dev/null"
Expand Down

0 comments on commit 3fd883b

Please sign in to comment.