1
1

Various control updates.

Signed-off-by: Derek Smith <derek@farscapian.com>
This commit is contained in:
Derek Smith 2022-04-22 16:11:55 -04:00
parent a9d709a16a
commit e5a22e8dc4
Signed by: farscapian
GPG Key ID: 8F1CD799CCA516CC
5 changed files with 13 additions and 15 deletions

View File

@ -67,7 +67,6 @@ elif [ "$VPS_HOSTING_TARGET" = lxd ]; then
./prepare_vps_host.sh ./prepare_vps_host.sh
fi fi
# clear
# this tells our local docker client to target the remote endpoint via SSH # this tells our local docker client to target the remote endpoint via SSH
export DOCKER_HOST="ssh://ubuntu@$FQDN" export DOCKER_HOST="ssh://ubuntu@$FQDN"

View File

@ -1,20 +1,19 @@
#!/bin/bash #!/bin/bash
set -exuo nounset set -exu
cd "$(dirname "$0")"
TOR_CONFIG_PATH= TOR_CONFIG_PATH=
ssh "$FQDN" mkdir -p "$REMOTE_HOME/ghost_site" "$REMOTE_HOME/ghost_db" ssh "$FQDN" mkdir -p "$REMOTE_HOME/ghost_site" "$REMOTE_HOME/ghost_db"
if [ "$DEPLOY_NEXTCLOUD" = true ]; then if [ "$DEPLOY_NEXTCLOUD" = true ]; then
ssh "$FQDN" mkdir -p "$REMOTE_NEXTCLOUD_PATH/db/data" \ ssh "$FQDN" "mkdir -p $REMOTE_NEXTCLOUD_PATH/db/data"
ssh "$FQDN" mkdir -p "$REMOTE_NEXTCLOUD_PATH/db/logs" \ ssh "$FQDN" "mkdir -p $REMOTE_NEXTCLOUD_PATH/db/logs"
ssh "$FQDN" mkdir -p "$REMOTE_NEXTCLOUD_PATH/html" ssh "$FQDN" "mkdir -p $REMOTE_NEXTCLOUD_PATH/html"
fi fi
if [ "$DEPLOY_GITEA" = true ]; then if [ "$DEPLOY_GITEA" = true ]; then
ssh "$FQDN" mkdir -p "$REMOTE_GITEA_PATH/data" "$REMOTE_GITEA_PATH/db" ssh "$FQDN" "mkdir -p $REMOTE_GITEA_PATH/data $REMOTE_GITEA_PATH/db"
fi fi
# enable docker swarm mode so we can support docker stacks. # enable docker swarm mode so we can support docker stacks.

View File

@ -3,8 +3,6 @@
set -eux set -eux
cd "$(dirname "$0")" cd "$(dirname "$0")"
if [ ! -f "$HOME/.aws/credentials" ]; then if [ ! -f "$HOME/.aws/credentials" ]; then
# TODO write a credential file baseline # TODO write a credential file baseline

View File

@ -56,5 +56,5 @@ EOL
# send the setup script to the remote machine. # send the setup script to the remote machine.
scp "$SITE_PATH/btcpay.sh" "ubuntu@$FQDN:$REMOTE_HOME/btcpay_setup.sh" scp "$SITE_PATH/btcpay.sh" "ubuntu@$FQDN:$REMOTE_HOME/btcpay_setup.sh"
ssh "$FQDN" chmod 0744 "$REMOTE_HOME/btcpay_setup.sh" ssh "$FQDN" "chmod 0744 $REMOTE_HOME/btcpay_setup.sh"
ssh "$FQDN" sudo bash -c ./btcpay_setup.sh ssh "$FQDN" "sudo bash -c ./btcpay_setup.sh"

View File

@ -23,8 +23,10 @@ if [ ! -f "$SITE_DEFINITION_PATH" ]; then
export SITE_TITLE="Short Title of Project" export SITE_TITLE="Short Title of Project"
export DOMAIN_NAME="domain.tld" export DOMAIN_NAME="domain.tld"
export DDNS_PASSWORD="GET_SHARED_SECRET_FROM_DNS_PROVIDER" export DDNS_PASSWORD=
export SMTP_PASSWORD="GET_SHARED_SECRET_FROM_EMAIL_PROVIDER" export SMTP_PASSWORD=
# TODO VERIFY SECURE RNG
export GHOST_MYSQL_PASSWORD="$(new_pass)" export GHOST_MYSQL_PASSWORD="$(new_pass)"
export GHOST_MYSQL_ROOT_PASSWORD="$(new_pass)" export GHOST_MYSQL_ROOT_PASSWORD="$(new_pass)"
export NEXTCLOUD_MYSQL_PASSWORD="$(new_pass)" export NEXTCLOUD_MYSQL_PASSWORD="$(new_pass)"
@ -35,6 +37,8 @@ export MATRIX_DB_PASSWORD="$(new_pass)"
export MATRIX_SHARED_SECRET="$(new_pass)" export MATRIX_SHARED_SECRET="$(new_pass)"
export MATRIX_ADMIN_PASSWORD="$(new_pass)" export MATRIX_ADMIN_PASSWORD="$(new_pass)"
export DUPLICITY_BACKUP_PASSPHRASE="$(new_pass)" export DUPLICITY_BACKUP_PASSPHRASE="$(new_pass)"
#export DEPLOY_WWW_SERVER=false
#export DEPLOY_BTCPAY_SERVER=false
#export DEPLOY_UMBREL_VPS=false #export DEPLOY_UMBREL_VPS=false
export DEPLOY_GHOST=true export DEPLOY_GHOST=true
export DEPLOY_MATRIX=true export DEPLOY_MATRIX=true
@ -45,8 +49,6 @@ export DEPLOY_ONION_SITE=false
#export BTC_CHAIN=testnet #export BTC_CHAIN=testnet
#export WWW_INSTANCE_TYPE="t2.medium" #export WWW_INSTANCE_TYPE="t2.medium"
#export BTCPAY_ADDITIONAL_HOSTNAMES="pay.domain.tld" #export BTCPAY_ADDITIONAL_HOSTNAMES="pay.domain.tld"
#export DEV_WWW_MAC_ADDRESS="00:16:3E:AD:25:2C"
#export DEV_BTCPAY_MAC_ADDRESS="00:16:3E:AD:25:2D"
EOL EOL