mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-13 23:27:16 +00:00
Add apache reverse proxy documentation. (#371)
* Add apache reverse proxy documentation * Add link to apache2 configuration
This commit is contained in:
parent
f84e2d2210
commit
b99d7bf1cc
1 changed files with 18 additions and 3 deletions
21
README.md
21
README.md
|
@ -104,10 +104,25 @@ When using a reverse proxy, such as Nginx or Apache, you may need to configure y
|
||||||
<details>
|
<details>
|
||||||
<summary>Apache</summary>
|
<summary>Apache</summary>
|
||||||
|
|
||||||
Not tested yet.
|
Apache2 does not change the headers by default, and should not
|
||||||
If you figure out a working setup, feel free to contribute it here.
|
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>
|
</details>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue