Skip to content

Commit

Permalink
moonraker: use PathRegexp to match paths for traefik 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuf committed May 5, 2024
1 parent ebeff3f commit 3f22d3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom/docker-compose.custom.portainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ services:
org.prind.service: moonraker
traefik.enable: true
traefik.http.services.moonraker.loadbalancer.server.port: 7125
traefik.http.routers.moonraker.rule: PathPrefix(`/websocket`,`/printer`,`/api`,`/access`,`/machine`,`/server`)
traefik.http.routers.moonraker.rule: PathRegexp(`^/(websocket|printer|api|access|machine|server)`)
traefik.http.routers.moonraker.entrypoints: web

webcam:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ services:
org.prind.service: moonraker
traefik.enable: true
traefik.http.services.moonraker.loadbalancer.server.port: 7125
traefik.http.routers.moonraker.rule: PathPrefix(`/websocket`,`/printer`,`/api`,`/access`,`/machine`,`/server`)
traefik.http.routers.moonraker.rule: PathRegexp(`^/(websocket|printer|api|access|machine|server)`)
traefik.http.routers.moonraker.entrypoints: web

## Frontends
Expand Down

0 comments on commit 3f22d3f

Please sign in to comment.