File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,28 @@ configuration:
340
340
341
341
RemoteIPHeader X-Forwarded-For
342
342
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
+
343
365
For more details, see also the recommendations in the
344
366
`Reverse Proxy Setup <https://docs.syncthing.net/users/reverseproxy.html >`__
345
367
page. Note that that page is directed at setting up a proxy for the
You can’t perform that action at this time.
0 commit comments