Commit 2c29c7e4 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Migra labels a Traefik v2

parent 3fc8a2d9
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -60,14 +60,18 @@ services:
          cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.2}'
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-800M}
      labels:
        traefik.frontend.rule: Host:${TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME}
        traefik.frontend.headers.customRequestHeaders: X-ProxyScheme:https||X-ProxyHost:${TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME}||X-ProxyPort:443
        traefik.frontend.redirect.regex: ^(.*://${TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME})/$$
        traefik.frontend.redirect.replacement: $$1/nifi-registry
        traefik.frontend.redirect.permanent: 'true'
        traefik.backend: nifi-registry
        traefik.protocol: https
        traefik.port: '${NIFI_REGISTRY_WEB_HTTPS_PORT}'
        traefik.enable: ${TRAEFIK_ENABLE:-true}
        traefik.http.routers.nifi-registry.entrypoints: ${TRAEFIK_ENTRYPOINT:-http}
        traefik.http.routers.nifi-registry.rule: Host(`${TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME}`)
        traefik.http.middlewares.nifi-registry-redirect.redirectregex.regex: ^(.*://${TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME})/$$
        traefik.http.middlewares.nifi-registry-redirect.redirectregex.replacement: $$1/nifi-registry
        traefik.http.middlewares.nifi-registry-redirect.redirectregex.permanent: 'true'
        traefik.http.middlewares.nifi-registry-headers-1.headers.customrequestheaders.X-ProxyScheme: https
        traefik.http.middlewares.nifi-registry-headers-2.headers.customrequestheaders.X-ProxyHost: ${TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME}
        traefik.http.middlewares.nifi-registry-headers-3.headers.customrequestheaders.X-ProxyPort: 443
        traefik.http.routers.nifi-registry.middlewares: nifi-registry-redirect, nifi-registry-headers-1, nifi-registry-headers-2, nifi-registry-headers-3
        traefik.http.services.nifi-registry.loadbalancer.server.port: ${NIFI_REGISTRY_WEB_HTTPS_PORT}
        traefik.http.services.nifi-registry.loadbalancer.server.scheme: https

networks:
  traefik-net: