NuxtN
Nuxt14mo ago
7 replies
Aiz

Error 500 in nuxt using reverse proxy with nginx

I have my nuxtjs application deployed, and in turn I have an NGINX configured with a proxy reverse that points to the Nuxt app, but I get an error 500 always by Nuxt

here's my nginx config

server {
    listen 80;
    server_name blog.srwither.com.ar;

    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl;
    server_name blog.srwither.com.ar;

    ssl_certificate /usr/local/etc/letsencrypt/live/blog.srwither.com.ar/fullchain.pem;
    ssl_certificate_key /usr/local/etc/letsencrypt/live/blog.srwither.com.ar/privkey.pem;

    gzip on;
    gzip_types text/plain application/xml text/css application/javascript;
    gzip_min_length 1000;

    location / {
        expires $expires;

        proxy_redirect                      off;
        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;
        proxy_read_timeout          1m;
        proxy_connect_timeout       1m;

        proxy_pass http://10.1.1.30:3000;

        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
    }
}
Captura_desde_2024-12-12_02-44-14.png
Was this page helpful?