1
0
Fork 0
mirror of https://github.com/yavook/kiwi-nextcloud.git synced 2025-12-06 18:33:00 +00:00
kiwi-nextcloud/nginx/nginx.conf.patch

16 lines
334 B
Diff
Raw Normal View History

2025-09-19 13:55:54 +00:00
--- a/nginx.conf
+++ b/nginx.conf
@@ -26,6 +26,12 @@
2022-03-10 00:39:27 +00:00
upstream php-handler {
2025-09-19 13:55:54 +00:00
server app:9000;
2022-03-10 00:39:27 +00:00
}
2025-09-19 13:55:54 +00:00
+
2022-03-10 00:39:27 +00:00
+ set_real_ip_from 10.0.0.0/8;
+ set_real_ip_from 172.16.0.0/12;
+ set_real_ip_from 192.168.0.0/16;
+ real_ip_header X-Forwarded-For;
+ real_ip_recursive on;
2025-09-19 13:55:54 +00:00
2022-03-10 00:39:27 +00:00
server {
listen 80;