mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-02 01:04:41 +02:00
Improved documentation
This commit is contained in:
parent
5f6671a5aa
commit
48ceaff026
3 changed files with 94 additions and 0 deletions
19
docs/installation/reverse-proxy.md
Normal file
19
docs/installation/reverse-proxy.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: Reverse proxy
|
||||
layout: default
|
||||
parent: Installation
|
||||
nav_order: 11
|
||||
---
|
||||
|
||||
# Reverse proxy
|
||||
|
||||
If you want to put Part-DB behind a reverse proxy, you have to configure Part-DB correctly to make it work properly.
|
||||
|
||||
You have to set the `TRUSTED_PROXIES` environment variable to the IP address of your reverse proxy
|
||||
(either in your `docker-compose.yaml` in the case of docker, or `.env.local` in case of direct installation).
|
||||
If you have multiple reverse proxies, you can set multiple IP addresses separated by a comma (or specify a range).
|
||||
|
||||
For example, if your reverse proxy has the IP address `192.168.2.10`, your value should be:
|
||||
```
|
||||
TRUSTED_PROXIES=192.168.2.10
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue