From 9fb34d92735170113d0391f114d3d4814dc7796d Mon Sep 17 00:00:00 2001 From: Conrad Hoffmann Date: Thu, 7 Apr 2022 10:13:07 +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 this (and require less documentation). --- config.example.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.example.ini b/config.example.ini index aa662b4..7c645e8 100644 --- a/config.example.ini +++ b/config.example.ini @@ -128,6 +128,12 @@ s3-prefix= # Required for preparing and sending patchsets from git.sr.ht outgoing-domain= +# +# 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:5101 + [git.sr.ht::api] # # Maximum complexity of GraphQL queries. The higher this number, the more work -- 2.38.4