Access WebFig behind Nginx reverse proxy.

I’m trying to access to my router, instead opening a port and forwarding to the router, using a dns name and Nginx as reverse proxy.

So I can access to my router using a name like this:

https://mt01.mydomain.com

This works, and I can log in. But after some time of connection (1min30sec) seems that Nginx closes the connection and the router goes to login page and shows an error message:
ERROR: Gateway Time-out

Seem that is something related with some Nginx timeout but not sure where to look for.

Any advice will be welcome.

hello,

maybe you want to read this article?

https://www.educba.com/nginx-gateway-timeout/

hope this helps.