Skip to content

Commit 34d0cba

Browse files
committed
docs: mention nginx config for real ip
1 parent 7d24166 commit 34d0cba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ In development, you'd run:
341341
In production, you may need to set up these to handle persistence & HTTPS:
342342
- Set up an NGINX or Apache proxy with a LetsEncrypt certificate
343343
(see [./nginx.conf](./nginx.conf) for an example.)
344+
- For the reference deployment, we are using a VM behind a proxy. We needed to set
345+
the following NGINX configuration values: `real_ip_header X-Forwarded-For;` and
346+
`set_real_ip_from ####;`, where `####` is the IP block for the hypervisor from the
347+
VM's perspective, in order to get correct `X-Real-IP` values for the terms of use
348+
agreement.
344349
- Set up Redis to handle caching
345350
- Set up Postgres to handle persistent data
346351
- In production, make sure to configure Postgres with **lots of RAM** and 4+ workers for gathers!

0 commit comments

Comments
 (0)