diff --git a/README.md b/README.md index 12f0789..28a9236 100644 --- a/README.md +++ b/README.md @@ -104,10 +104,25 @@ When using a reverse proxy, such as Nginx or Apache, you may need to configure y
Apache -Not tested yet. -If you figure out a working setup, feel free to contribute it here. +Apache2 does not change the headers by default, and should not +need additional configuration. -In the meanwhile, use the [`LD_CSRF_TRUSTED_ORIGINS` option](docs/Options.md#LD_CSRF_TRUSTED_ORIGINS). +An example virtual host that proxies to linkding might look like: +``` + + + Order deny,allow + Allow from all + + + ProxyPass / http://linkding:9090/ + ProxyPassReverse / http://linkding:9090/ + +``` + +For a full example, see the docker-compose configuration in [jhauris/apache2-reverse-proxy](https://github.com/jhauris/linkding/tree/apache2-reverse-proxy) + +If you still run into CSRF issues, please check out the [`LD_CSRF_TRUSTED_ORIGINS` option](docs/Options.md#LD_CSRF_TRUSTED_ORIGINS).