explorer PathPrefix, color reset

This commit is contained in:
vdo 2022-05-27 17:03:17 +01:00
parent 32104f3d4a
commit 9b30144709
No known key found for this signature in database
GPG key ID: F10AD1E5C08EA7E2
3 changed files with 8 additions and 6 deletions

2
.env
View file

@ -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

View file

@ -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"

View file

@ -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
}