From b99d7bf1cc42715c88c911fe4eb4c2fd7a5ce474 Mon Sep 17 00:00:00 2001 From: jhauris <7433306+jhauris@users.noreply.github.com> Date: Wed, 21 Dec 2022 02:52:38 -0500 Subject: [PATCH] Add apache reverse proxy documentation. (#371) * Add apache reverse proxy documentation * Add link to apache2 configuration --- README.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) 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).