Commit 90f942eb authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Permite deshabilitar Traefik y renombra variables

Agrega variable para poder deshabilitar Traefik.

Renombra variables de sticky cookie para aclarar a qué se refieren,
además de añadir su valor directamente a compose.
parent f1dacaff
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -71,10 +71,5 @@ WAL_VOL_NAME=postgres-gwc-wal-vol

PUBLIC_HOSTNAME=change.me
GEOSERVER_HEALTH_PATH=/geoserver/rest/about/version.xml
TRAEFIK_ENABLE=true
TRAEFIK_ENTRYPOINT=http
TRAEFIK_HEALTH_AUTH=Basic YWRtaW46Y2hhbmdlbWU=
TRAEFIK_COOKIE_NAME=traefik-geoserver
TRAEFIK_COOKIE_HTTPONLY=true
TRAEFIK_COOKIE_SECURE=true
TRAEFIK_COOKIE_SAMESITE=lax
+6 −6
Original line number Diff line number Diff line
@@ -61,15 +61,15 @@ x-geoserver-deploy: &geoserver-deploy
    delay: ${GEOSERVER_UPDATE_DELAY:-3m}

x-geoserver-traefik-common-service-labels: &geoserver-traefik-common-service-labels
  traefik.enable: ${TRAEFIK_ENABLE}
  traefik.enable: ${TRAEFIK_ENABLE:-true}

  traefik.http.services.geoserver.loadbalancer.server.port: ${GEOSERVER_PORT}

  traefik.http.services.geoserver.loadbalancer.sticky.cookie: 'true'
  traefik.http.services.geoserver.loadbalancer.sticky.cookie.name: ${TRAEFIK_COOKIE_NAME}
  traefik.http.services.geoserver.loadbalancer.sticky.cookie.httponly: '${TRAEFIK_COOKIE_HTTPONLY}'
  traefik.http.services.geoserver.loadbalancer.sticky.cookie.secure: '${TRAEFIK_COOKIE_SECURE}'
  traefik.http.services.geoserver.loadbalancer.sticky.cookie.samesite: ${TRAEFIK_COOKIE_SAMESITE}
  traefik.http.services.geoserver.loadbalancer.sticky.cookie: ${TRAEFIK_STICKY_COOKIE:-true}
  traefik.http.services.geoserver.loadbalancer.sticky.cookie.name: ${TRAEFIK_STICKY_COOKIE_NAME:-traefik-geoserver}
  traefik.http.services.geoserver.loadbalancer.sticky.cookie.httponly: ${TRAEFIK_STICKY_COOKIE_HTTPONLY:-true}
  traefik.http.services.geoserver.loadbalancer.sticky.cookie.secure: ${TRAEFIK_STICKY_COOKIE_SECURE:-true}
  traefik.http.services.geoserver.loadbalancer.sticky.cookie.samesite: ${TRAEFIK_STICKY_COOKIE_SAMESITE:-lax}

  traefik.http.services.geoserver.loadbalancer.healthcheck.path: ${GEOSERVER_HEALTH_PATH}
  traefik.http.services.geoserver.loadbalancer.healthcheck.headers.authorization: ${TRAEFIK_HEALTH_AUTH}