diff --git a/deployment/project_env.sh b/deployment/project_env.sh index d78e6e3..88290e7 100755 --- a/deployment/project_env.sh +++ b/deployment/project_env.sh @@ -32,14 +32,34 @@ fi SHASUM_OF_PRIMARY_DOMAIN="$(echo -n "$PRIMARY_DOMAIN" | sha256sum | awk '{print $1;}' )" export PRIMARY_DOMAIN_IDENTIFIER="${SHASUM_OF_PRIMARY_DOMAIN: -6}" + +# default values are already at regtest mode. +if [ "$BITCOIN_CHAIN" = testnet ]; then + + WWW_SSDATA_DISK_SIZE_GB=30 + WWW_BACKUP_DISK_SIZE_GB=30 + WWW_DOCKER_DISK_SIZE_GB=50 + + BTCPAYSERVER_SSDATA_DISK_SIZE_GB=30 + BTCPAYSERVER_BACKUP_DISK_SIZE_GB=30 + BTCPAYSERVER_DOCKER_DISK_SIZE_GB=100 + +elif [ "$BITCOIN_CHAIN" = mainnet ]; then + + WWW_SSDATA_DISK_SIZE_GB=40 + WWW_BACKUP_DISK_SIZE_GB=40 + WWW_DOCKER_DISK_SIZE_GB=1000 + + BTCPAYSERVER_SSDATA_DISK_SIZE_GB=30 + BTCPAYSERVER_BACKUP_DISK_SIZE_GB=30 + BTCPAYSERVER_DOCKER_DISK_SIZE_GB=250 + +fi + export WWW_SSDATA_DISK_SIZE_GB="$WWW_SSDATA_DISK_SIZE_GB" export WWW_BACKUP_DISK_SIZE_GB="$WWW_BACKUP_DISK_SIZE_GB" export WWW_DOCKER_DISK_SIZE_GB="$WWW_DOCKER_DISK_SIZE_GB" export BTCPAYSERVER_SSDATA_DISK_SIZE_GB="$BTCPAYSERVER_SSDATA_DISK_SIZE_GB" export BTCPAYSERVER_BACKUP_DISK_SIZE_GB="$BTCPAYSERVER_BACKUP_DISK_SIZE_GB" -export BTCPAYSERVER_DOCKER_DISK_SIZE_GB="$BTCPAYSERVER_DOCKER_DISK_SIZE_GB" - -export LNPLAY_SERVER_SSDATA_DISK_SIZE_GB="$LNPLAY_SERVER_SSDATA_DISK_SIZE_GB" -export LNPLAY_SERVER_BACKUP_DISK_SIZE_GB="$LNPLAY_SERVER_BACKUP_DISK_SIZE_GB" -export LNPLAY_SSERVER_DOCKER_DISK_SIZE_GB="$LNPLAY_SSERVER_DOCKER_DISK_SIZE_GB" \ No newline at end of file +export BTCPAYSERVER_DOCKER_DISK_SIZE_GB="$BTCPAYSERVER_DOCKER_DISK_SIZE_GB" \ No newline at end of file diff --git a/deployment/remote_env.sh b/deployment/remote_env.sh index fe57881..10cf969 100755 --- a/deployment/remote_env.sh +++ b/deployment/remote_env.sh @@ -51,42 +51,3 @@ fi source "$REMOTE_DEFINITION" - -# default values are already at regtest mode. -if [ "$BITCOIN_CHAIN" = testnet ]; then - - WWW_SSDATA_DISK_SIZE_GB=30 - WWW_BACKUP_DISK_SIZE_GB=30 - WWW_DOCKER_DISK_SIZE_GB=50 - - BTCPAYSERVER_SSDATA_DISK_SIZE_GB=30 - BTCPAYSERVER_BACKUP_DISK_SIZE_GB=30 - BTCPAYSERVER_DOCKER_DISK_SIZE_GB=100 - - LNPLAY_SERVER_SSDATA_DISK_SIZE_GB=20 - LNPLAY_SERVER_BACKUP_DISK_SIZE_GB=20 - LNPLAY_SSERVER_DOCKER_DISK_SIZE_GB=20 - -elif [ "$BITCOIN_CHAIN" = mainnet ]; then - - WWW_SSDATA_DISK_SIZE_GB=40 - WWW_BACKUP_DISK_SIZE_GB=40 - WWW_DOCKER_DISK_SIZE_GB=1000 - - BTCPAYSERVER_SSDATA_DISK_SIZE_GB=30 - BTCPAYSERVER_BACKUP_DISK_SIZE_GB=30 - BTCPAYSERVER_DOCKER_DISK_SIZE_GB=500 - - LNPLAY_SERVER_SSDATA_DISK_SIZE_GB=20 - LNPLAY_SERVER_BACKUP_DISK_SIZE_GB=20 - LNPLAY_SSERVER_DOCKER_DISK_SIZE_GB=400 - -fi - -export WWW_SSDATA_DISK_SIZE_GB="$WWW_SSDATA_DISK_SIZE_GB" -export WWW_BACKUP_DISK_SIZE_GB="$WWW_BACKUP_DISK_SIZE_GB" -export WWW_DOCKER_DISK_SIZE_GB="$WWW_DOCKER_DISK_SIZE_GB" - -export BTCPAYSERVER_SSDATA_DISK_SIZE_GB="$BTCPAYSERVER_SSDATA_DISK_SIZE_GB" -export BTCPAYSERVER_BACKUP_DISK_SIZE_GB="$BTCPAYSERVER_BACKUP_DISK_SIZE_GB" -export BTCPAYSERVER_DOCKER_DISK_SIZE_GB="$BTCPAYSERVER_DOCKER_DISK_SIZE_GB"