You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,11 @@ HaRP is configured via several environment variables. Here are the key variables
136
136
- `HP_EXAPPS_HTTPS_ADDRESS="0.0.0.0:8781"`
137
137
- **Note:** Must be reachable by your reverse proxy.
138
138
139
+
- **`HP_TRUSTED_PROXY_IPS`**
140
+
- **Description:** A comma-separated list of trusted reverse proxy IP addresses or CIDR ranges. When HaRP is behind another reverse proxy (like NGINX), set this to the IP of that proxy to allow HaRP to correctly identify the true client IP from `X-Forwarded-For` or `X-Real-IP` headers.
141
+
- **Default:** `""` (disabled)
142
+
- **Example:** `"172.18.0.0/16,127.0.0.1"`
143
+
139
144
- **`HP_FRP_ADDRESS`**
140
145
- **Description:** IP:Port for the FRP (TCP) frontends.
141
146
- **Default:** `HP_FRP_ADDRESS="0.0.0.0:8782"`
@@ -336,6 +341,7 @@ docker run \
336
341
-e NC_INSTANCE_URL="http://nextcloud.local" \
337
342
-e HP_LOG_LEVEL="debug" \
338
343
-e HP_VERBOSE_START="1" \
344
+
-e HP_TRUSTED_PROXY_IPS="192.168.0.0/16" \
339
345
-v /var/run/docker.sock:/var/run/docker.sock \
340
346
-v `pwd`/certs:/certs \
341
347
--name appapi-harp -h appapi-harp \
@@ -346,6 +352,9 @@ docker run \
346
352
-d nextcloud-appapi-harp:local
347
353
```
348
354
355
+
> [!important]
356
+
> Be mindful of checking and changing the environment variables `HP_SHARED_KEY`, `NC_INSTANCE_URL`, and `HP_TRUSTED_PROXY_IPS` in the above command to suit your environment and setup.
0 commit comments