fix: OpenRemote Traefik + GeoServer CORS + Keycloak route

This commit is contained in:
Eric
2026-05-11 14:21:24 -04:00
parent 742c3d3959
commit 04b8dfa67b
3 changed files with 66 additions and 43 deletions

View File

@@ -8,60 +8,25 @@ http:
certResolver: letsencrypt
priority: 100
middlewares:
- mapstore-home-redirect
service: mapstore-root-redirect
- mapstore-replace-path
service: mapstore-proxy-service
mapstore-static:
rule: "Host(`mapstore.digitribe.fr`) && (PathPrefix(`/mapstore/dist/`) || PathPrefix(`/mapstore/static/`) || PathPrefix(`/mapstore/translations/`) || PathPrefix(`/mapstore/jsp/`) || Path(`/mapstore/favicon.png`) || Path(`/mapstore/favicon.ico`))"
entryPoints:
- websecure
tls:
certResolver: letsencrypt
priority: 300
service: mapstore-app-direct
mapstore-app:
mapstore-all:
rule: "Host(`mapstore.digitribe.fr`)"
entryPoints:
- websecure
tls:
certResolver: letsencrypt
priority: 200
service: mapstore
mapstore-geoserver:
rule: "Host(`mapstore.digitribe.fr`) && PathPrefix(`/geoserver`)"
entryPoints:
- websecure
tls:
certResolver: letsencrypt
priority: 150
service: mapstore-geoserver-backend
service: mapstore-proxy-service
middlewares:
mapstore-home-redirect:
redirectRegex:
regex: "^https://mapstore.digitribe.fr/$"
replacement: "https://mapstore.digitribe.fr/mapstore/"
permanent: true
mapstore-replace-path:
replacePath:
path: "/mapstore/"
services:
mapstore-root-redirect:
mapstore-proxy-service:
loadBalancer:
servers:
- url: "http://mapstore-proxy:80"
mapstore:
loadBalancer:
servers:
- url: "http://mapstore-proxy:80"
mapstore-app-direct:
loadBalancer:
servers:
- url: "http://mapstore-app:8080"
mapstore-geoserver-backend:
loadBalancer:
servers:
- url: "http://172.29.0.8:8080"