mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2025-11-23 17:04:27 +01:00
Update docker-compose.yml
add traefil labels to protect /metrics endpoint
This commit is contained in:
@@ -41,8 +41,14 @@ services:
|
||||
# - traefik.enable=true
|
||||
# - traefik.docker.network=proxy
|
||||
# - traefik.http.routers.hedgedoc.rule=Host(`collab.example.com`)
|
||||
# - traefik.http.routers.hedgedoc.service=hedgedoc
|
||||
# - traefik.http.services.hedgedoc.loadbalancer.server.port=3000
|
||||
# - traefik.http.routers.hedgedoc.middlewares=local-ipwhitelist@file
|
||||
# # prevent unauthorized access to the /metrics endpoint
|
||||
# - traefik.http.routers.hedgedoc-metrics.rule=Host(`collab.example.com`) && PathPrefix(`/metrics`)
|
||||
# - traefik.http.routers.hedgedoc-metrics.service=hedgedoc
|
||||
# - traefik.http.services.hedgedoc-metrics.loadbalancer.server.port=3000
|
||||
# - traefik.http.routers.hedgedoc-metrics.middlewares=local-ipwhitelist@file
|
||||
|
||||
#networks:
|
||||
# proxy:
|
||||
|
||||
Reference in New Issue
Block a user