fix: OpenRemote Traefik + GeoServer CORS + Keycloak route
This commit is contained in:
@@ -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"
|
||||
|
||||
42
dynamic/ditto.yml
Normal file
42
dynamic/ditto.yml
Normal 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"
|
||||
16
dynamic/grafana-smart-city.yml
Normal file
16
dynamic/grafana-smart-city.yml
Normal 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"
|
||||
Reference in New Issue
Block a user