added header for forwarding robot ip address

main
alex 2023-11-05 15:38:41 +01:00
parent 21d993c389
commit c96de50c5d
1 changed files with 3 additions and 1 deletions

View File

@ -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/;
}