ESP8266 cannot connect via public domain on port 80 (use nginx proxy)

Hi, I’m trying to connect my ESP8266 to my own Blynk server on my VPS.
I’m using Nginx to forward port 80 to 8080. I can register and log in success. But my ESP8266 cannot connect to port 80. got the message:
" [973963] Connecting to
[974283] Packet too big: 2052".
But it can connect success via port 8080 direct.

Blynk.begin(auth, ssid, pass, "", 80);

server {
    listen      80;
    listen [::]:80;
    server_name ;

    location / {
        # header pass through configuration
        proxy_set_header        Host $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;

        # extra debug headers
        add_header              X-Forwarded-For $proxy_add_x_forwarded_for;

        # actual proxying configuration
        # proxy_ssl_session_reuse on;
        proxy_redirect          default;
        proxy_read_timeout      90;# WS Headers

        # websocket support, thanks to Miguel Otero
        proxy_http_version      1.1;
        proxy_set_header        Upgrade $http_upgrade;
        proxy_set_header        Connection "upgrade";

Please help me!

Why are you using port 80 instead of 8080 ?


I’m running few website on that VPS.