From e6acdb9df39984ff9727837fe471b66dce765d2e Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Sun, 13 Nov 2022 20:23:48 -0500 Subject: [PATCH] Added NOSTR RELAY stack. --- defaults.sh | 4 +- deploy.sh | 2 +- deployment/btcpayserver/stub_btcpay_setup.sh | 3 +- deployment/www/go.sh | 2 +- deployment/www/stop_docker_stacks.sh | 2 +- deployment/www/stub/nginx_config.sh | 29 ++++++++++ deployment/www/stub/nginx_yml.sh | 14 +++++ deployment/www/stub/nostr_yml.sh | 58 ++++++++++++++++++++ 8 files changed, 109 insertions(+), 5 deletions(-) create mode 100755 deployment/www/stub/nostr_yml.sh diff --git a/defaults.sh b/defaults.sh index 3d4e48b..7de5216 100755 --- a/defaults.sh +++ b/defaults.sh @@ -6,7 +6,7 @@ export WWW_SERVER_MAC_ADDRESS= export DEPLOY_WWW_SERVER=false export DEPLOY_BTCPAY_SERVER=false export DEPLOY_GHOST=true -export DEPLOY_NOSTR_RELAY=true +export DEPLOY_NOSTR_RELAY=false export DEPLOY_ONION_SITE=false export DEPLOY_NEXTCLOUD=false export DEPLOY_GITEA=false @@ -83,6 +83,8 @@ export NEXTCLOUD_DB_IMAGE="$DEFAULT_DB_IMAGE" export GITEA_IMAGE="gitea/gitea:latest" export GITEA_DB_IMAGE="$DEFAULT_DB_IMAGE" +export NOSTR_RELAY_IMAGE="scsibug/nostr-rs-relay" + export SOVEREIGN_STACK_MAC_ADDRESS= export WWW_SERVER_MAC_ADDRESS= export BTCPAYSERVER_MAC_ADDRESS= diff --git a/deploy.sh b/deploy.sh index 487339a..d60e6d8 100755 --- a/deploy.sh +++ b/deploy.sh @@ -396,7 +396,7 @@ export SITE_LANGUAGE_CODES="en" export DUPLICITY_BACKUP_PASSPHRASE="$(new_pass)" export DEPLOY_GHOST=true export DEPLOY_NEXTCLOUD=false -export DEPLOY_NOSTR_RELAY=true +export DEPLOY_NOSTR_RELAY=false export NOSTR_ACCOUNT_PUBKEY="NOSTR_IDENTITY_PUBKEY_GOES_HERE" export DEPLOY_GITEA=false #export DEPLOY_ONION_SITE=false diff --git a/deployment/btcpayserver/stub_btcpay_setup.sh b/deployment/btcpayserver/stub_btcpay_setup.sh index c93c4aa..7363564 100755 --- a/deployment/btcpayserver/stub_btcpay_setup.sh +++ b/deployment/btcpayserver/stub_btcpay_setup.sh @@ -8,6 +8,7 @@ cd "$(dirname "$0")" # This is the config for a basic proxy to the listening port 127.0.0.1:2368 # It also supports modern TLS, so SSL certs must be available. +#opt-add-nostr-relay; cat > "$SITE_PATH/btcpay.sh" <>"$NGINX_CONF_PATH" <>"$NGINX_CONF_PATH" <> "$DOCKER_YAML_PATH" <> "$DOCKER_YAML_PATH" <> "$DOCKER_YAML_PATH" < "$DOCKER_YAML_PATH" + cat >>"$DOCKER_YAML_PATH" <