Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
add traefil labels to protect /metrics endpoint
  • Loading branch information
l4rm4nd authored Nov 17, 2023
1 parent 2d69d89 commit c683739
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/hedgedoc/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c683739

Please sign in to comment.