From 9b30144709ee761aef29968bad07da20f57c128b Mon Sep 17 00:00:00 2001 From: vdo Date: Fri, 27 May 2022 17:03:17 +0100 Subject: [PATCH] explorer PathPrefix, color reset --- .env | 2 +- docker-compose.yml | 8 +++++--- installer.sh | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.env b/.env index f964910..d16eafa 100644 --- a/.env +++ b/.env @@ -15,5 +15,5 @@ MONEROD_accessControlAllowOriginList=* TOR_TAG=0.4.7.7 TOR_HTTP_PORT=80 -EXPLORER_TAG=latest +EXPLORER_TAG=v0.17 EXPLORER_PORT=8081 diff --git a/docker-compose.yml b/docker-compose.yml index 8ae9698..afd954a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -46,17 +46,19 @@ x-tor-service: &tor-service x-explorer-service: &explorer-service explorer: - image: sethsimmons/xmrblocks:latest + image: vdo1138/xmrblocks:${EXPLORER_TAG} container_name: explorer restart: unless-stopped volumes: - monerod-data:/home/monero/.bitmonero ports: - ${EXPLORER_PORT} + depends_on: + - monerod labels: - "traefik.enable=true" - - "traefik.http.routers.explorer.rule=(PathPrefixStrip(`/explorer`) )" #!nole - # - "traefik.http.routers.explorer.rule=(Host(`${DOMAIN}`) && PathPrefixStrip(`/explorer`) )" #!le + - "traefik.http.routers.explorer.rule=(PathPrefix(`/explorer`) )" #!nole + # - "traefik.http.routers.explorer.rule=(Host(`${DOMAIN}`) && PathPrefix(`/explorer`) )" #!le # - "traefik.http.routers.explorer.tls.certresolver=le" #!le - "traefik.http.middlewares.stripprefix.stripprefix.prefixes=/explorer" - "traefik.http.routers.explorer.middlewares=stripprefix" diff --git a/installer.sh b/installer.sh index 0f29ef5..862764a 100755 --- a/installer.sh +++ b/installer.sh @@ -290,7 +290,7 @@ check_return() { completed() { echo -e "${OkBullet}Deployment complete.${Off}" - PUBLIC_IP=$(curl -s ifconfig.co 2>>"${XMRSH_LOG_FILE}") + PUBLIC_IP=$(curl -4 -s ifconfig.co 2>>"${XMRSH_LOG_FILE}") if [ -n "$TLS_DOMAIN" ]; then HOST="${TLS_DOMAIN}" else @@ -311,7 +311,7 @@ completed() { if [ "$ENABLE_TOR" = true ]; then echo -e " ${Red}│${Stat} Onion Service: ${StatInfo}$ONION" fi - echo -e " ${Red}│" + echo -e " ${Red}│${Off}" echo }