Syncthing discover server -- How best to debug and test

So I’m in the process of setting up a syncthing discovery server. Syncthing is not being run on the docker host of the syncthing server. I’ve put the discovery server behind an nginx reverse proxy (npm).

I’m using a slightly modified docker image found here:

I’m starting with the parameters: ${USER_HOME}/server/discosrv

Anyway container is up and running:

stdiscosrv v1.8.0 "Fermium Flea" (go1.13.8 linux-amd64) 2020-08-07 06:09:12 UTC
Failed to load keypair. Generating one, this might take a while...

I’ve added the reverse proxy with the modified headers as explained:

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header X-SSL-Cert $ssl_client_cert;
ssl_verify_client optional_no_ca;

I’ve aimed my syncthing macbook installation at the disco server:

Soooo – What’s best method to try to debug this to see if it works?

STTRACE=discovery on the Syncthing instance for trace logs of the discovery process. You can ask the discovery server for a device which should be announcing itself there:

% curl -k
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.