Skip to content

Commit

Permalink
users: Add Caddy Proxy to Discovery Server Description (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOggy85 committed Aug 3, 2023
1 parent 4380e9b commit 1c15939
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions users/stdiscosrv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,28 @@ configuration:
RemoteIPHeader X-Forwarded-For
Caddy
""""""
The following lines must be added to the Caddyfile:

.. code-block:: caddyfile
discovery.example.com {
reverse_proxy 192.0.2.1:8443 {
header_up X-Forwarded-For {http.request.remote.host}
header_up X-Client-Port {http.request.remote.port}
header_up X-Tls-Client-Cert-Der-Base64 {http.request.tls.client.certificate_der_base64}
}
tls {
client_auth {
mode request
}
}
}
.. code-block:: caddyfile
For more details, see also the recommendations in the
`Reverse Proxy Setup <https://docs.syncthing.net/users/reverseproxy.html>`__
page. Note that that page is directed at setting up a proxy for the
Expand Down

0 comments on commit 1c15939

Please sign in to comment.