# HG changeset patch # User Tom Gottfried # Date 1536599544 -7200 # Node ID 4ffdb922db4491568a7e282646193aa56055d45e # Parent be8b79109679dd0bf3ed79381ac663b6c1a66db8 Document adding of external OGC services. diff -r be8b79109679 -r 4ffdb922db44 README.md --- 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`.