From 8f9826b2077713f2c9943837474caff2e7d2288e Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Fri, 7 Apr 2023 10:34:17 +0200 Subject: [PATCH] Fix export path for certificate files (#794) assign the value for NETBIRD_LETSENCRYPT_DOMAIN in the base.setup.env file --- infrastructure_files/base.setup.env | 2 ++ infrastructure_files/configure.sh | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure_files/base.setup.env b/infrastructure_files/base.setup.env index 6d6b21238..3d3f92ef4 100644 --- a/infrastructure_files/base.setup.env +++ b/infrastructure_files/base.setup.env @@ -7,6 +7,7 @@ NETBIRD_MGMT_API_PORT=${NETBIRD_MGMT_API_PORT:-33073} # Management API endpoint address, used by the Dashboard NETBIRD_MGMT_API_ENDPOINT=https://$NETBIRD_DOMAIN:$NETBIRD_MGMT_API_PORT # Management Certficate file path. These are generated by the Dashboard container +NETBIRD_LETSENCRYPT_DOMAIN=$NETBIRD_DOMAIN NETBIRD_MGMT_API_CERT_FILE="/etc/letsencrypt/live/$NETBIRD_LETSENCRYPT_DOMAIN/fullchain.pem" # Management Certficate key file path. NETBIRD_MGMT_API_CERT_KEY_FILE="/etc/letsencrypt/live/$NETBIRD_LETSENCRYPT_DOMAIN/privkey.pem" @@ -53,6 +54,7 @@ export NETBIRD_AUTH_JWT_CERTS export NETBIRD_LETSENCRYPT_EMAIL export NETBIRD_MGMT_API_PORT export NETBIRD_MGMT_API_ENDPOINT +export NETBIRD_LETSENCRYPT_DOMAIN export NETBIRD_MGMT_API_CERT_FILE export NETBIRD_MGMT_API_CERT_KEY_FILE export NETBIRD_AUTH_DEVICE_AUTH_PROVIDER diff --git a/infrastructure_files/configure.sh b/infrastructure_files/configure.sh index 501098a57..872d46c4b 100755 --- a/infrastructure_files/configure.sh +++ b/infrastructure_files/configure.sh @@ -143,8 +143,6 @@ then unset NETBIRD_LETSENCRYPT_DOMAIN unset NETBIRD_MGMT_API_CERT_FILE unset NETBIRD_MGMT_API_CERT_KEY_FILE -else - export NETBIRD_LETSENCRYPT_DOMAIN="$NETBIRD_DOMAIN" fi env | grep NETBIRD