From 2de99bca30ed5964eb539c88b88d7e2b9c3ec8cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 17 Jul 2022 22:59:38 +0200 Subject: [PATCH] Added some documentation on how to use reverse proxies. Relates to issue #145, #96 and others. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d29a8661..cdf113c3 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,10 @@ for additional informations. When you want to upgrade to a newer version, then just copy the new files into the folder and repeat the steps 4. to 7. +### Reverse proxy +If you are using a reverse proxy, you have to ensure that the proxies sets the `X-Forwarded-*` headers correctly, or you will get HTTP/HTTPS mixup and wrong hostnames. +If the reverse proxy is on a different server (or it cannot access Part-DB via localhost) you have to set the `TRUSTED_PROXIES` env variable to match your reverse proxies IP-address (or IP block). You can do this in your `.env.local` or (when using docker) in your `docker-compose.yml` file. + ## Useful console commands Part-DB provides some command consoles which can be invoked by `php bin/console [command]`. You can get help for every command with the parameter `--help`. Useful commands are: