forked from ss/sovereign-stack
Remove onion artifacts.
This commit is contained in:
parent
9d13ec3991
commit
bd129ed073
@ -7,7 +7,6 @@ export DEPLOY_WWW_SERVER=false
|
|||||||
export DEPLOY_BTCPAY_SERVER=false
|
export DEPLOY_BTCPAY_SERVER=false
|
||||||
export DEPLOY_GHOST=false
|
export DEPLOY_GHOST=false
|
||||||
|
|
||||||
export DEPLOY_ONION_SITE=false
|
|
||||||
export DEPLOY_NEXTCLOUD=false
|
export DEPLOY_NEXTCLOUD=false
|
||||||
export DEPLOY_GITEA=false
|
export DEPLOY_GITEA=false
|
||||||
|
|
||||||
|
@ -295,7 +295,6 @@ export DEPLOY_GHOST=true
|
|||||||
export DEPLOY_NEXTCLOUD=false
|
export DEPLOY_NEXTCLOUD=false
|
||||||
export NOSTR_ACCOUNT_PUBKEY="NOSTR_IDENTITY_PUBKEY_GOES_HERE"
|
export NOSTR_ACCOUNT_PUBKEY="NOSTR_IDENTITY_PUBKEY_GOES_HERE"
|
||||||
export DEPLOY_GITEA=false
|
export DEPLOY_GITEA=false
|
||||||
#export DEPLOY_ONION_SITE=false
|
|
||||||
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)"
|
||||||
|
@ -132,32 +132,6 @@ if [ "$RESTART_FRONT_END" = true ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# if [ "$DEPLOY_ONION_SITE" = true ]; then
|
|
||||||
# # ensure the tor image is built
|
|
||||||
# docker build -t tor:latest ./tor
|
|
||||||
|
|
||||||
# # if the tor folder doesn't exist, we provision a new one. Otherwise you need to restore.
|
|
||||||
# # this is how we generate a new torv3 endpoint.
|
|
||||||
# if ! ssh "$PRIMARY_WWW_FQDN" "[ -d $REMOTE_HOME/tor/www ]"; then
|
|
||||||
# ssh "$PRIMARY_WWW_FQDN" "mkdir -p $REMOTE_HOME/tor"
|
|
||||||
# TOR_CONFIG_PATH="$(pwd)/tor/torrc-init"
|
|
||||||
# export TOR_CONFIG_PATH="$TOR_CONFIG_PATH"
|
|
||||||
# docker stack deploy -c ./tor.yml torstack
|
|
||||||
# sleep 20
|
|
||||||
# docker stack rm torstack
|
|
||||||
# sleep 20
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# ONION_ADDRESS="$(ssh "$PRIMARY_WWW_FQDN" sudo cat "${REMOTE_HOME}"/tor/www/hostname)"
|
|
||||||
# export ONION_ADDRESS="$ONION_ADDRESS"
|
|
||||||
|
|
||||||
# # # Since we run a separate ghost process, we create a new directory and symlink it to the original
|
|
||||||
# # if ! ssh "$PRIMARY_WWW_FQDN" "[ -L $REMOTE_HOME/tor_ghost ]"; then
|
|
||||||
# # ssh "$PRIMARY_WWW_FQDN" ln -s "$REMOTE_HOME/ghost_site/themes $REMOTE_HOME/tor_ghost/themes"
|
|
||||||
# # fi
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# nginx gets deployed first since it "owns" the docker networks of downstream services.
|
# nginx gets deployed first since it "owns" the docker networks of downstream services.
|
||||||
./stub/nginx_yml.sh
|
./stub/nginx_yml.sh
|
||||||
|
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
|
|
||||||
# # tor config
|
|
||||||
# if [ "$DEPLOY_ONION_SITE" = true ]; then
|
|
||||||
# cat >>"$NGINX_CONF_PATH" <<EOL
|
|
||||||
# # server listener for tor v3 onion endpoint
|
|
||||||
# server {
|
|
||||||
# listen 443 ssl http2;
|
|
||||||
# listen [::]:443 ssl http2;
|
|
||||||
# server_name ${ONION_ADDRESS};
|
|
||||||
# #access_log /var/log/nginx/tor-www.log;
|
|
||||||
|
|
||||||
# # administration not allowed over tor interface.
|
|
||||||
# location /ghost { deny all; }
|
|
||||||
# location / {
|
|
||||||
# proxy_set_header X-Forwarded-For 1.1.1.1;
|
|
||||||
# proxy_set_header X-Forwarded-Proto https;
|
|
||||||
# proxy_set_header X-Real-IP 1.1.1.1;
|
|
||||||
# proxy_set_header Host \$http_host;
|
|
||||||
# proxy_pass http://tor-ghost:2368;
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# EOL
|
|
||||||
# fi
|
|
@ -1,149 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# if [ "$DEPLOY_NEXTCLOUD" = true ]; then
|
|
||||||
# cat >>"$DOCKER_YAML_PATH" <<EOL
|
|
||||||
# nextcloud-db:
|
|
||||||
# image: ${NEXTCLOUD_DB_IMAGE}
|
|
||||||
# command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --log-bin --innodb_read_only_compressed=OFF
|
|
||||||
# networks:
|
|
||||||
# - nextclouddb-net
|
|
||||||
# volumes:
|
|
||||||
# - ${REMOTE_HOME}/nextcloud/db/data:/var/lib/mysql
|
|
||||||
# environment:
|
|
||||||
# - MARIADB_ROOT_PASSWORD=\${NEXTCLOUD_MYSQL_ROOT_PASSWORD}
|
|
||||||
# - MYSQL_PASSWORD=\${NEXTCLOUD_MYSQL_PASSWORD}
|
|
||||||
# - MYSQL_DATABASE=nextcloud
|
|
||||||
# - MYSQL_USER=nextcloud
|
|
||||||
# deploy:
|
|
||||||
# restart_policy:
|
|
||||||
# condition: on-failure
|
|
||||||
|
|
||||||
# nextcloud:
|
|
||||||
# image: ${NEXTCLOUD_IMAGE}
|
|
||||||
# networks:
|
|
||||||
# - nextclouddb-net
|
|
||||||
# - nextcloud-net
|
|
||||||
# volumes:
|
|
||||||
# - ${REMOTE_HOME}/nextcloud/html:/var/www/html
|
|
||||||
# environment:
|
|
||||||
# - MYSQL_PASSWORD=\${NEXTCLOUD_MYSQL_PASSWORD}
|
|
||||||
# - MYSQL_DATABASE=nextcloud
|
|
||||||
# - MYSQL_USER=nextcloud
|
|
||||||
# - MYSQL_HOST=nextcloud-db
|
|
||||||
# - NEXTCLOUD_TRUSTED_DOMAINS=${DOMAIN_NAME}
|
|
||||||
# - OVERWRITEHOST=${NEXTCLOUD_FQDN}
|
|
||||||
# - OVERWRITEPROTOCOL=https
|
|
||||||
# - SERVERNAME=${NEXTCLOUD_FQDN}
|
|
||||||
# deploy:
|
|
||||||
# restart_policy:
|
|
||||||
# condition: on-failure
|
|
||||||
|
|
||||||
# EOL
|
|
||||||
# fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# if [ "$DEPLOY_ONION_SITE" = true ]; then
|
|
||||||
# cat >>"$DOCKER_YAML_PATH" <<EOL
|
|
||||||
# # a hidden service that routes to the nginx container at http://onionurl.onion server block
|
|
||||||
# tor-onion:
|
|
||||||
# image: tor:latest
|
|
||||||
# networks:
|
|
||||||
# - tor-net
|
|
||||||
# volumes:
|
|
||||||
# - ${REMOTE_HOME}/tor:/var/lib/tor
|
|
||||||
# - tor-logs:/var/log/tor
|
|
||||||
# configs:
|
|
||||||
# - source: tor-config
|
|
||||||
# target: /etc/tor/torrc
|
|
||||||
# mode: 0644
|
|
||||||
# deploy:
|
|
||||||
# mode: replicated
|
|
||||||
# replicas: 1
|
|
||||||
# restart_policy:
|
|
||||||
# condition: on-failure
|
|
||||||
|
|
||||||
# tor-ghost:
|
|
||||||
# image: ${GHOST_IMAGE}
|
|
||||||
# networks:
|
|
||||||
# - ghostdb-net
|
|
||||||
# - ghost-net
|
|
||||||
# volumes:
|
|
||||||
# - ${REMOTE_HOME}/tor_ghost:/var/lib/ghost/content
|
|
||||||
# environment:
|
|
||||||
# - url=https://${ONION_ADDRESS}
|
|
||||||
# - database__client=mysql
|
|
||||||
# - database__connection__host=ghostdb
|
|
||||||
# - database__connection__user=ghost
|
|
||||||
# - database__connection__password=\${GHOST_MYSQL_PASSWORD}
|
|
||||||
# - database__connection__database=ghost
|
|
||||||
# deploy:
|
|
||||||
# restart_policy:
|
|
||||||
# condition: on-failure
|
|
||||||
|
|
||||||
# EOL
|
|
||||||
# fi
|
|
||||||
|
|
||||||
|
|
||||||
# if [ "$DEPLOY_ONION_SITE" = true ]; then
|
|
||||||
# cat >>"$DOCKER_YAML_PATH" <<EOL
|
|
||||||
# - torghost-net
|
|
||||||
# EOL
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# if [ "$DEPLOY_NEXTCLOUD" = true ]; then
|
|
||||||
# cat >>"$DOCKER_YAML_PATH" <<EOL
|
|
||||||
# - nextcloud-net
|
|
||||||
# EOL
|
|
||||||
# fi
|
|
||||||
|
|
||||||
|
|
||||||
# if [ "$DEPLOY_ONION_SITE" = true ]; then
|
|
||||||
# cat >>"$DOCKER_YAML_PATH" <<EOL
|
|
||||||
# - tor-net
|
|
||||||
# EOL
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# if [ "$DEPLOY_ONION_SITE" = true ]; then
|
|
||||||
# cat >>"$DOCKER_YAML_PATH" <<EOL
|
|
||||||
|
|
||||||
# volumes:
|
|
||||||
# tor-data:
|
|
||||||
# tor-logs:
|
|
||||||
|
|
||||||
# EOL
|
|
||||||
# fi
|
|
||||||
# #-------------------------
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# if [ "$DEPLOY_NEXTCLOUD" = true ]; then
|
|
||||||
# cat >>"$DOCKER_YAML_PATH" <<EOL
|
|
||||||
# nextclouddb-net:
|
|
||||||
# nextcloud-net:
|
|
||||||
# EOL
|
|
||||||
# fi
|
|
||||||
|
|
||||||
|
|
||||||
# if [ "$DEPLOY_ONION_SITE" = true ]; then
|
|
||||||
# cat >>"$DOCKER_YAML_PATH" <<EOL
|
|
||||||
# tor-net:
|
|
||||||
# torghost-net:
|
|
||||||
# EOL
|
|
||||||
# fi
|
|
||||||
# # -------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
# if [ "$DEPLOY_ONION_SITE" = true ]; then
|
|
||||||
# cat >>"$DOCKER_YAML_PATH" <<EOL
|
|
||||||
# tor-config:
|
|
||||||
# file: $(pwd)/tor/torrc
|
|
||||||
# EOL
|
|
||||||
# fi
|
|
||||||
# # -----------------------------
|
|
@ -9,7 +9,6 @@ export DEPLOY_GHOST=true
|
|||||||
export DEPLOY_NEXTCLOUD=false
|
export DEPLOY_NEXTCLOUD=false
|
||||||
export NOSTR_ACCOUNT_PUBKEY=
|
export NOSTR_ACCOUNT_PUBKEY=
|
||||||
export DEPLOY_GITEA=false
|
export DEPLOY_GITEA=false
|
||||||
export DEPLOY_ONION_SITE=false
|
|
||||||
export GHOST_MYSQL_PASSWORD=
|
export GHOST_MYSQL_PASSWORD=
|
||||||
export GHOST_MYSQL_ROOT_PASSWORD=
|
export GHOST_MYSQL_ROOT_PASSWORD=
|
||||||
export NEXTCLOUD_MYSQL_PASSWORD=
|
export NEXTCLOUD_MYSQL_PASSWORD=
|
||||||
|
Loading…
Reference in New Issue
Block a user