allow specification of additional domains with https support (#164)
This commit is contained in:
committed by
Nicolas Dorier
parent
53ff474671
commit
3b44087ff3
@@ -97,6 +97,7 @@ Environment variables:
|
||||
BTCPAYGEN_DOCKER_IMAGE: Allows you to specify a custom docker image for the generator (Default: btcpayserver/docker-compose-generator)
|
||||
BTCPAY_IMAGE: Allows you to specify the btcpayserver docker image to use over the default version. (Default: current stable version of btcpayserver)
|
||||
BTCPAY_PROTOCOL: Allows you to specify the external transport protocol of BTCPayServer. (Default: https)
|
||||
BTCPAY_ADDITIONAL_HOSTS: Allows you to specify additional domains to your BTCPayServer with https support if enabled. (eg. example2.com,example3.com)
|
||||
Add-on specific variables:
|
||||
LIBREPATRON_HOST: If libre patron is activated with opt-add-librepatron, the hostname of your libre patron website (eg. librepatron.example.com)
|
||||
WOOCOMMERCE_HOST: If woocommerce is activated with opt-add-woocommerce, the hostname of your woocommerce website (eg. store.example.com)
|
||||
@@ -142,7 +143,7 @@ while (( "$#" )); do
|
||||
esac
|
||||
done
|
||||
|
||||
# If start does not have a value, stophere
|
||||
# If start does not have a value, stop here
|
||||
if ! [[ "$START" ]]; then
|
||||
display_help
|
||||
return
|
||||
@@ -160,6 +161,10 @@ if [[ -z "$BTCPAYGEN_CRYPTO1" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -z "$BTCPAY_ADDITIONAL_HOSTS" ] && [[ "$BTCPAY_ADDITIONAL_HOSTS" == *[';']* ]]; then
|
||||
echo "$BTCPAY_ADDITIONAL_HOSTS should be separated by a , not ;"
|
||||
return;
|
||||
fi
|
||||
######### Migration: old pregen environment to new environment ############
|
||||
if [[ ! -z $BTCPAY_DOCKER_COMPOSE ]] && [[ ! -z $DOWNLOAD_ROOT ]] && [[ -z $BTCPAYGEN_OLD_PREGEN ]]; then
|
||||
echo "Your deployment is too old, you need to migrate by following instructions on this link https://github.com/btcpayserver/btcpayserver-docker/tree/master#i-deployed-before-btcpay-setupsh-existed-before-may-17-can-i-migrate-to-this-new-system"
|
||||
@@ -178,6 +183,7 @@ fi
|
||||
: "${REVERSEPROXY_DEFAULT_HOST:=none}"
|
||||
: "${ACME_CA_URI:=https://acme-v01.api.letsencrypt.org/directory}"
|
||||
: "${BTCPAY_PROTOCOL:=https}"
|
||||
: "${BTCPAY_ADDITIONAL_HOSTS:=}"
|
||||
: "${REVERSEPROXY_HTTP_PORT:=80}"
|
||||
: "${REVERSEPROXY_HTTPS_PORT:=443}"
|
||||
|
||||
@@ -229,6 +235,7 @@ echo "
|
||||
Parameters passed:
|
||||
BTCPAY_PROTOCOL:$BTCPAY_PROTOCOL
|
||||
BTCPAY_HOST:$BTCPAY_HOST
|
||||
BTCPAY_ADDITIONAL_HOSTS:$BTCPAY_ADDITIONAL_HOSTS
|
||||
REVERSEPROXY_HTTP_PORT:$REVERSEPROXY_HTTP_PORT
|
||||
REVERSEPROXY_HTTPS_PORT:$REVERSEPROXY_HTTPS_PORT
|
||||
REVERSEPROXY_DEFAULT_HOST:$REVERSEPROXY_DEFAULT_HOST
|
||||
|
||||
Reference in New Issue
Block a user