mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 14:22:33 +03:00
add middleware to traefik
This commit is contained in:
parent
8a194d7f48
commit
03f0dfc55d
@ -38,18 +38,19 @@ services:
|
|||||||
traefik.http.services.micrach.loadbalancer.server.port: ${PORT}
|
traefik.http.services.micrach.loadbalancer.server.port: ${PORT}
|
||||||
|
|
||||||
traefik.http.middlewares.micrach-https-redirect.redirectscheme.scheme: "https"
|
traefik.http.middlewares.micrach-https-redirect.redirectscheme.scheme: "https"
|
||||||
|
traefik.http.middlewares.prefixstripper.stripprefix.prefixes: "/${GATEWAY_BOARD_ID}"
|
||||||
|
traefik.http.middlewares.prefixstripper.stripprefix.forceSlash: "false"
|
||||||
|
|
||||||
traefik.http.routers.micrach.entrypoints: "http"
|
traefik.http.routers.micrach.entrypoints: "http"
|
||||||
traefik.http.routers.micrach.rule: "Host(`micrach.igonin.dev`) && PathPrefix(`/${GATEWAY_BOARD_ID}`)"
|
traefik.http.routers.micrach.rule: "Host(`micrach.igonin.dev`) && PathPrefix(`/${GATEWAY_BOARD_ID}`)"
|
||||||
traefik.http.routers.micrach.middlewares: "micrach-https-redirect"
|
traefik.http.routers.micrach.middlewares: "micrach-https-redirect"
|
||||||
|
traefik.http.routers.micrach.middlewares: "prefixstripper"
|
||||||
traefik.http.middlewares.micrach-secure.stripprefix.prefixes: "/${GATEWAY_BOARD_ID}"
|
|
||||||
traefik.http.middlewares.micrach-secure.stripprefix.forceSlash: "false"
|
|
||||||
|
|
||||||
traefik.http.routers.micrach-secure.entrypoints: "https"
|
traefik.http.routers.micrach-secure.entrypoints: "https"
|
||||||
traefik.http.routers.micrach-secure.rule: "Host(`micrach.igonin.dev`) && PathPrefix(`/${GATEWAY_BOARD_ID}`)"
|
traefik.http.routers.micrach-secure.rule: "Host(`micrach.igonin.dev`) && PathPrefix(`/${GATEWAY_BOARD_ID}`)"
|
||||||
traefik.http.routers.micrach-secure.tls: "true"
|
traefik.http.routers.micrach-secure.tls: "true"
|
||||||
traefik.http.routers.micrach-secure.service: "micrach"
|
traefik.http.routers.micrach-secure.service: "micrach"
|
||||||
|
traefik.http.routers.micrach-secure.middlewares: "prefixstripper"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
web:
|
web:
|
||||||
|
Loading…
Reference in New Issue
Block a user