mirror of
https://github.com/lalanza808/xmr.sh.git
synced 2025-05-14 17:02:11 -04:00
explorer PathPrefix, color reset
This commit is contained in:
parent
32104f3d4a
commit
9b30144709
3 changed files with 8 additions and 6 deletions
2
.env
2
.env
|
@ -15,5 +15,5 @@ MONEROD_accessControlAllowOriginList=*
|
||||||
TOR_TAG=0.4.7.7
|
TOR_TAG=0.4.7.7
|
||||||
TOR_HTTP_PORT=80
|
TOR_HTTP_PORT=80
|
||||||
|
|
||||||
EXPLORER_TAG=latest
|
EXPLORER_TAG=v0.17
|
||||||
EXPLORER_PORT=8081
|
EXPLORER_PORT=8081
|
||||||
|
|
|
@ -46,17 +46,19 @@ x-tor-service: &tor-service
|
||||||
|
|
||||||
x-explorer-service: &explorer-service
|
x-explorer-service: &explorer-service
|
||||||
explorer:
|
explorer:
|
||||||
image: sethsimmons/xmrblocks:latest
|
image: vdo1138/xmrblocks:${EXPLORER_TAG}
|
||||||
container_name: explorer
|
container_name: explorer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- monerod-data:/home/monero/.bitmonero
|
- monerod-data:/home/monero/.bitmonero
|
||||||
ports:
|
ports:
|
||||||
- ${EXPLORER_PORT}
|
- ${EXPLORER_PORT}
|
||||||
|
depends_on:
|
||||||
|
- monerod
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.explorer.rule=(PathPrefixStrip(`/explorer`) )" #!nole
|
- "traefik.http.routers.explorer.rule=(PathPrefix(`/explorer`) )" #!nole
|
||||||
# - "traefik.http.routers.explorer.rule=(Host(`${DOMAIN}`) && PathPrefixStrip(`/explorer`) )" #!le
|
# - "traefik.http.routers.explorer.rule=(Host(`${DOMAIN}`) && PathPrefix(`/explorer`) )" #!le
|
||||||
# - "traefik.http.routers.explorer.tls.certresolver=le" #!le
|
# - "traefik.http.routers.explorer.tls.certresolver=le" #!le
|
||||||
- "traefik.http.middlewares.stripprefix.stripprefix.prefixes=/explorer"
|
- "traefik.http.middlewares.stripprefix.stripprefix.prefixes=/explorer"
|
||||||
- "traefik.http.routers.explorer.middlewares=stripprefix"
|
- "traefik.http.routers.explorer.middlewares=stripprefix"
|
||||||
|
|
|
@ -290,7 +290,7 @@ check_return() {
|
||||||
|
|
||||||
completed() {
|
completed() {
|
||||||
echo -e "${OkBullet}Deployment complete.${Off}"
|
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
|
if [ -n "$TLS_DOMAIN" ]; then
|
||||||
HOST="${TLS_DOMAIN}"
|
HOST="${TLS_DOMAIN}"
|
||||||
else
|
else
|
||||||
|
@ -311,7 +311,7 @@ completed() {
|
||||||
if [ "$ENABLE_TOR" = true ]; then
|
if [ "$ENABLE_TOR" = true ]; then
|
||||||
echo -e " ${Red}│${Stat} Onion Service: ${StatInfo}$ONION"
|
echo -e " ${Red}│${Stat} Onion Service: ${StatInfo}$ONION"
|
||||||
fi
|
fi
|
||||||
echo -e " ${Red}│"
|
echo -e " ${Red}│${Off}"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue