Add apache reverse proxy documentation. (#371)

* Add apache reverse proxy documentation

* Add link to apache2 configuration
This commit is contained in:
jhauris 2022-12-21 02:52:38 -05:00 committed by GitHub
parent f84e2d2210
commit b99d7bf1cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,10 +104,25 @@ When using a reverse proxy, such as Nginx or Apache, you may need to configure y
<details>
<summary>Apache</summary>
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:
```
<VirtualHost *:9100>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://linkding:9090/
ProxyPassReverse / http://linkding:9090/
</VirtualHost>
```
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).
</details>