# Using reverse-proxied nginx and subdomain with self-hosted, Dockerized discovery server

**URL:** https://forum.syncthing.net/t/using-reverse-proxied-nginx-and-subdomain-with-self-hosted-dockerized-discovery-server/6849
**Category:** Support
**Created:** [February 25, 2016, 8:16pm UTC](https://forum.syncthing.net/t/using-reverse-proxied-nginx-and-subdomain-with-self-hosted-dockerized-discovery-server/6849 "2016-02-25T20:16:38Z")
**Posts on this page:** 3
**Page:** 2

<div class="post-metadata">

### Author: ![firecat4153](https://forum.syncthing.net/user_avatar/forum.syncthing.net/firecat4153/32/92_2.png) [@firecat4153](https://forum.syncthing.net/u/firecat4153)
#### Post date: [March 1, 2016, 2:35pm UTC](https://forum.syncthing.net/t/using-reverse-proxied-nginx-and-subdomain-with-self-hosted-dockerized-discovery-server/6849/21 "2016-03-01T14:35:27Z")

</div>

That was already on my agenda for today! Thanks, Scott

---

<div class="post-metadata">

### Author: ![firecat4153](https://forum.syncthing.net/user_avatar/forum.syncthing.net/firecat4153/32/92_2.png) [@firecat4153](https://forum.syncthing.net/u/firecat4153)
#### Post date: [March 2, 2016, 4:34am UTC](https://forum.syncthing.net/t/using-reverse-proxied-nginx-and-subdomain-with-self-hosted-dockerized-discovery-server/6849/22 "2016-03-02T04:34:18Z")

</div>

Would an addition be useful to the [documentation site](https://docs.syncthing.net/users/discosrv.html) for discosrv detailing the two Nginx (and equivalent Apache) settings needed for running behind a reverse proxy? Even with @AudriusButkevicius’s help, it took me a looong time to sort this out ☹

Something like:

## Reverse Proxy considerations

When running discosrv behind a reverse proxy, ensure the following are set in your Nginx configuration:

- `proxy_set_header X-SSL-Cert $ssl_client_cert;`
- `ssl_verify_client optional_no_ca;`

Or for Apache:

- ???

Scott

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [April 1, 2016, 4:45am UTC](https://forum.syncthing.net/t/using-reverse-proxied-nginx-and-subdomain-with-self-hosted-dockerized-discovery-server/6849/23 "2016-04-01T04:45:58Z")

</div>

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

[Previous page](https://forum.syncthing.net/t/using-reverse-proxied-nginx-and-subdomain-with-self-hosted-dockerized-discovery-server/6849.md?page=1)
