diff README.md @ 615:4ffdb922db44

Document adding of external OGC services.
author Tom Gottfried <tom@intevation.de>
date Mon, 10 Sep 2018 19:12:24 +0200
parents f62ee9d5bff1
children 76e9296d6191
line wrap: on
line diff
--- a/README.md	Mon Sep 10 18:52:37 2018 +0200
+++ b/README.md	Mon Sep 10 19:12:24 2018 +0200
@@ -67,3 +67,15 @@
   ```
   ./cmd/gemma/gemma
   ```
+
+## Proxying OGC services through gemma
+
+- Add services you want to publish via gemma (e.g. for same-origin policy
+  compliance reasons) in the database. For example:
+  ```
+  INSERT INTO sys_admin.external_services (local_name, remote_url, is_wfs)
+    VALUES ('d4d', 'https://service.d4d-portal.info/wamos/wfs', true);
+  ```
+  In case your gemma is already running (see previous section), restart it.
+  The services will be available at `/api/external/${local_name}`, thus in
+  the example given above: `/api/external/d4d`.