mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-01-30 21:23:49 +00:00
Update docker-compose.yml
add traefil labels to protect /metrics endpoint
This commit is contained in:
parent
2d69d899b0
commit
c683739fa7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user