Push 163 file(s) from Obsidian

This commit is contained in:
2026-09-24 13:22:58 +05:00
parent 4c6a45e2e8
commit 9777f9490f
163 changed files with 36730 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
Для проброса реально IP от NPM в Nextcloud необходимо добавить в config.php следующие поля:
```
'trusted_proxies' =>
array (
0 => '192.168.88.126',
),
'forwarded_for_headers' =>
array (
0 => 'HTTP_X_FORWARDED_FOR',
),
```
При этом в сам NPM добавить следующие параметры
```
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_hide_header Upgrade;
```
В роутере (Openwrt):
создать правило NAT, которое бы разрешало для proxy сервера получать внешние IP:
![[Pasted image 20260406121204.png]]