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 certResolver: letsencrypt
priority: 100 priority: 100
middlewares: middlewares:
- mapstore-home-redirect - mapstore-replace-path
service: mapstore-root-redirect service: mapstore-proxy-service
mapstore-static: mapstore-all:
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:
rule: "Host(`mapstore.digitribe.fr`)" rule: "Host(`mapstore.digitribe.fr`)"
entryPoints: entryPoints:
- websecure - websecure
tls: tls:
certResolver: letsencrypt certResolver: letsencrypt
priority: 200 priority: 200
service: mapstore service: mapstore-proxy-service
mapstore-geoserver:
rule: "Host(`mapstore.digitribe.fr`) && PathPrefix(`/geoserver`)"
entryPoints:
- websecure
tls:
certResolver: letsencrypt
priority: 150
service: mapstore-geoserver-backend
middlewares: middlewares:
mapstore-home-redirect: mapstore-replace-path:
redirectRegex: replacePath:
regex: "^https://mapstore.digitribe.fr/$" path: "/mapstore/"
replacement: "https://mapstore.digitribe.fr/mapstore/"
permanent: true
services: services:
mapstore-root-redirect: mapstore-proxy-service:
loadBalancer: loadBalancer:
servers: servers:
- url: "http://mapstore-proxy:80" - 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"

42
dynamic/ditto.yml Normal file
View File

@@ -0,0 +1,42 @@
# Configuration Traefik pour Eclipse Ditto
http:
routers:
# Point d'entrée principal Ditto (Gateway)
ditto-gateway:
rule: "Host(`ditto.digitribe.fr`)"
entryPoints:
- websecure
service: ditto-gateway-service
tls: {}
# API Policies
ditto-policies:
rule: "Host(`ditto.digitribe.fr`) && PathPrefix(`/policies`)"
entryPoints:
- websecure
service: ditto-policies-service
tls: {}
# API Things
ditto-things:
rule: "Host(`ditto.digitribe.fr`) && PathPrefix(`/things`)"
entryPoints:
- websecure
service: ditto-things-service
tls: {}
services:
ditto-gateway-service:
loadBalancer:
servers:
- url: "http://smart-city-ditto-gateway:8080"
ditto-policies-service:
loadBalancer:
servers:
- url: "http://smart-city-ditto-policies:8080"
ditto-things-service:
loadBalancer:
servers:
- url: "http://smart-city-ditto-things:8080"

View File

@@ -0,0 +1,16 @@
http:
routers:
grafana:
rule: "Host(`grafana.digitribe.fr`)"
entrypoints:
- web
- websecure
tls:
certresolver: letsencrypt
service: grafana-service
services:
grafana-service:
loadbalancer:
servers:
- url: "http://smart-city-grafana:3000"