refactor: Update domain configuration in .env.example and local_core.yml

This commit is contained in:
2024-09-05 22:59:40 +08:00
parent d3ff8215e6
commit 6189697822
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -7,6 +7,7 @@ TZ="Asia/Singapore"
## dashboard configs ## dashboard configs
HOST="localhost" HOST="localhost"
# TLD="lol" # TLD="lol"
# LOCALDOMAIN="$(hostname).${TLD}"
# DOMAIN="$(hostname).${TLD}" # DOMAIN="$(hostname).${TLD}"
# DOMAINNAME="$(hostname).${TLD}" # DOMAINNAME="$(hostname).${TLD}"
HOSTNAME="node00" HOSTNAME="node00"
+2 -2
View File
@@ -75,7 +75,7 @@ services:
- treafik.http.middlewares.neo4j_strip.stripprefix.prefixes=/neo4j - treafik.http.middlewares.neo4j_strip.stripprefix.prefixes=/neo4j
# traefik-https the actual router using HTTPS # traefik-https the actual router using HTTPS
- traefik.http.routers.traefik-public-https.entrypoints=https - traefik.http.routers.traefik-public-https.entrypoints=https
- traefik.http.routers.traefik-public-https.rule=Host(`dashboard.${SLD}.lol`) - traefik.http.routers.traefik-public-https.rule=Host(`dashboard.${DOMAIN}`)
# Use the "le" (Let's Encrypt) resolver created below # Use the "le" (Let's Encrypt) resolver created below
- traefik.http.routers.traefik-public-https.tls.certresolver=le - traefik.http.routers.traefik-public-https.tls.certresolver=le
# Enable HTTP Basic auth, using the middleware created above # Enable HTTP Basic auth, using the middleware created above
@@ -84,7 +84,7 @@ services:
- traefik.http.routers.traefik-public-https.service=api@internal - traefik.http.routers.traefik-public-https.service=api@internal
# Local service router # Local service router
- traefik.http.routers.traefik-public-local-https.entrypoints=https - traefik.http.routers.traefik-public-local-https.entrypoints=https
- traefik.http.routers.traefik-public-local-https.rule=HostRegexp(`dashboard.${SLD}.local`) - traefik.http.routers.traefik-public-local-https.rule=HostRegexp(`dashboard.${LOCALDOMAIN}`)
- traefik.http.routers.traefik-public-local-https.tls=true - traefik.http.routers.traefik-public-local-https.tls=true
# Enable HTTP Basic auth, using the middleware created above # Enable HTTP Basic auth, using the middleware created above
- traefik.http.routers.traefik-public-local-https.middlewares=admin-auth - traefik.http.routers.traefik-public-local-https.middlewares=admin-auth