-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to security proxy and config to make maelstro accessible
- Loading branch information
Showing
6 changed files
with
135 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# maelstro | ||
geOrchestra Maelstro is an application which helps synchronise geonetwork and geoserver instances | ||
|
||
|
||
## run it in docker | ||
Refer to documentation from https://github.com/georchestra/docker/tree/master?tab=readme-ov-file#on-linux to trust caddy certificate | ||
|
||
Also you need to run few commands before to start documented here : [georchestra/README.md](georchestra/README.md) | ||
|
70 changes: 70 additions & 0 deletions
70
georchestra/0001-tweat-gateway-and-security-proxy-config-to-host-mael.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
From 7708ff6453b48253f9047c6afc20c11e05e99e04 Mon Sep 17 00:00:00 2001 | ||
From: Jean-Michel Crepel <[email protected]> | ||
Date: Tue, 21 Jan 2025 10:17:24 +0100 | ||
Subject: [PATCH] tweat gateway and security-proxy config to host maelstro | ||
backend service | ||
|
||
--- | ||
gateway/routes.yaml | 10 +++++++++- | ||
security-proxy/security-proxy.properties | 2 +- | ||
security-proxy/targets-mapping.properties | 1 + | ||
3 files changed, 11 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/gateway/routes.yaml b/gateway/routes.yaml | ||
index 86c25b9..3ca3c2f 100644 | ||
--- a/gateway/routes.yaml | ||
+++ b/gateway/routes.yaml | ||
@@ -10,7 +10,7 @@ spring: | ||
predicates: | ||
- Path=/ | ||
filters: | ||
- - RedirectTo=308, /datahub/ | ||
+ - RedirectTo=308, /geonetwork/ | ||
- id: header | ||
uri: ${georchestra.gateway.services.header.target} | ||
predicates: | ||
@@ -59,6 +59,13 @@ spring: | ||
uri: ${georchestra.gateway.services.ogc-api-records.target} | ||
predicates: | ||
- Path=/ogc-api-records/** | ||
+ - id: maelstro-back | ||
+ uri: ${georchestra.gateway.services.maelstro-back.target} | ||
+ predicates: | ||
+ - Path=/maelstrob/** | ||
+ filters: | ||
+ - RewritePath=/maelstrob/(?<segment>.*),/$\{segment} | ||
+ | ||
|
||
georchestra.gateway.services: | ||
console.target: http://${CONSOLE_HOST}:8080/console/ | ||
@@ -71,3 +78,4 @@ georchestra.gateway.services: | ||
import.target: http://${IMPORT_HOST}:80/ | ||
mapstore.target: http://${MAPSTORE_HOST}:8080/mapstore/ | ||
ogc-api-records.target: http://${OGC_API_RECORDS_HOST}:8080/ogc-api-records/ | ||
+ maelstro-back.target: http://${MAELSTRO_HOST}:8000/ | ||
diff --git a/security-proxy/security-proxy.properties b/security-proxy/security-proxy.properties | ||
index d42ef7a..6a23907 100644 | ||
--- a/security-proxy/security-proxy.properties | ||
+++ b/security-proxy/security-proxy.properties | ||
@@ -131,7 +131,7 @@ casTicketValidation=http://${CAS_HOST}:8080/cas | ||
# The security-proxy will 302 redirect / to the defaultTarget value (/header by default). | ||
# Change it if your homepage (eg a CMS) is located on /portal/ for instance | ||
# default: ${headerUrl} | ||
-#defaultTarget=${headerUrl} | ||
+defaultTarget=/geonetwork/ | ||
|
||
|
||
# Connection pool settings for the logger appender that inserts OGC request stats on the database | ||
diff --git a/security-proxy/targets-mapping.properties b/security-proxy/targets-mapping.properties | ||
index 1bccb4f..eadd82b 100644 | ||
--- a/security-proxy/targets-mapping.properties | ||
+++ b/security-proxy/targets-mapping.properties | ||
@@ -9,3 +9,4 @@ datafeeder=http://${DATAFEEDER_HOST}:8080/datafeeder/ | ||
import=http://${IMPORT_HOST}:80/ | ||
datahub=http://${DATAHUB_HOST}:80/datahub/ | ||
ogc-api-records=http://${OGC_API_RECORDS_HOST}:8080/ogc-api-records/ | ||
+maelstrob=http://${MAELSTRO_HOST}:8000/ | ||
\ No newline at end of file | ||
-- | ||
2.34.1 | ||
|
44 changes: 0 additions & 44 deletions
44
georchestra/0001-tweat-gateway-config-to-host-maelstro-backend-servic.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters