From c96de50c5d2cfdae6c94f2bec42a4e3ecd4e8e36 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 5 Nov 2023 15:38:41 +0100 Subject: [PATCH] added header for forwarding robot ip address --- nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index bae26b4..c3243f0 100644 --- a/nginx.conf +++ b/nginx.conf @@ -30,10 +30,12 @@ server { proxy_pass http://jnx-telegram-bot-manager/; } - location /rcm/ { # robot control manager + location /rcm/ { # robot control manager + proxy_read_timeout 10800s; client_max_body_size 0; proxy_http_version 1.0; proxy_set_header Connection ""; # needed for sse + proxy_set_header X-Real-IP $remote_addr; # needed to get the robot ip address proxy_pass http://jnx-robot-control-manager/; }