Skip to content

Commit 1c15939

Browse files
authored
users: Add Caddy Proxy to Discovery Server Description (#812)
1 parent 4380e9b commit 1c15939

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

users/stdiscosrv.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,28 @@ configuration:
340340
341341
RemoteIPHeader X-Forwarded-For
342342
343+
Caddy
344+
""""""
345+
The following lines must be added to the Caddyfile:
346+
347+
.. code-block:: caddyfile
348+
349+
discovery.example.com {
350+
reverse_proxy 192.0.2.1:8443 {
351+
header_up X-Forwarded-For {http.request.remote.host}
352+
header_up X-Client-Port {http.request.remote.port}
353+
header_up X-Tls-Client-Cert-Der-Base64 {http.request.tls.client.certificate_der_base64}
354+
}
355+
356+
tls {
357+
client_auth {
358+
mode request
359+
}
360+
}
361+
}
362+
363+
.. code-block:: caddyfile
364+
343365
For more details, see also the recommendations in the
344366
`Reverse Proxy Setup <https://docs.syncthing.net/users/reverseproxy.html>`__
345367
page. Note that that page is directed at setting up a proxy for the

0 commit comments

Comments
 (0)