Traefik Dashboard Port Change

This commit is contained in:
Gbanyan 2025-04-18 12:56:51 +08:00
parent d1ef10cf18
commit 8881deb816
3 changed files with 21 additions and 12 deletions

View File

@ -32,7 +32,7 @@ services:
- "traefik.http.routers.traefik.service=api@internal" - "traefik.http.routers.traefik.service=api@internal"
- "com.centurylinklabs.watchtower.enable=true" # Added label for Watchtower - "com.centurylinklabs.watchtower.enable=true" # Added label for Watchtower
# "traefik.http.middlewares.auth.basicauth.usersfile=/dashboard_authfile" # "traefik.http.middlewares.auth.basicauth.usersfile=/dashboard_authfile"
- "traefik.http.services.traefik.loadbalancer.server.port=8080" - "traefik.http.services.traefik.loadbalancer.server.port=9090"
#networks: #networks:
# traefik_default: # traefik_default:

View File

@ -20,9 +20,16 @@ http:
compress-middleware: compress-middleware:
compress: compress:
encodings: encodings:
- zstd
- br - br
- gzip - gzip
defaultEncoding: br defaultEncoding: zstd
includedContentTypes:
- text/html
- text/css
- application/javascript
- application/json
- text/plain
routers: routers:
block-direct-access: block-direct-access:
rule: "HostRegexp(`{host:.+}`)" # Matches any host rule: "HostRegexp(`{host:.+}`)" # Matches any host

View File

@ -66,6 +66,8 @@ entryPoints:
http3: {} http3: {}
metrics: metrics:
address: "127.0.0.1:8082" address: "127.0.0.1:8082"
dashboard:
address: "127.0.0.1:9090"
global: global:
checknewversion: false # Periodically check if a new version has been released. checknewversion: false # Periodically check if a new version has been released.