From 833e2a5588ff562a259d3d6c16cd81de1d40c0a1 Mon Sep 17 00:00:00 2001 From: Conrad Hoffmann Date: Mon, 9 May 2022 10:11:30 +0200 Subject: [PATCH] Add api-origin to example config If the service is not behind a reverse proxy (e.g. during local development/testing) then this is needed by meta.sr.ht for API discovery for all services that have a seperate API component. Add this (commented out) to the example config, to make it easier to discover (and require less documentation). --- config.example.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.example.ini b/config.example.ini index 27adab8..062616b 100644 --- a/config.example.ini +++ b/config.example.ini @@ -103,6 +103,11 @@ notify-from=CHANGEME@example.org # # The redis connection used for the webhooks worker webhooks=redis://localhost:6379/1 +# +# Origin URL for the API +# Only needed if not run behind a reverse proxy, e.g. for local development. +# By default, the API port is 100 more than the web port +#api-origin=http://localhost:5103 [todo.sr.ht::mail] #