Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
"No se puede acceder a esta página" en la implementación de Nuxt

Estoy tratando de implementar una aplicación Nuxt en Digital Ocean sobre Nginx con pm2. Cuando voy a la IP de la gota, puedo ver la página de bienvenida de Nginx, pero cuando trato de ir a la IP: PUERTO de la aplicación Nuxt, dice:

 This site can't be reached 167.xx.xxx.xxx refused to connect. Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED

He agregado esto en los sitios disponibles/archivo predeterminado:

 server { server_name domain.com; location / { proxy_pass http://localhost:7200; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } }

Después de esto, verifiqué el estado de nginx y lo reinicié.

Además, agregué el servicio en pm2 con pm2 start --name="webapp" npm -- start y puedo verlo funcionando correctamente.

Incluso he intentado ejecutar directamente el comando npm run start pero obtengo el mismo resultado.

Espero que puedas ayudarme.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

 server { listen 80; server_name localhost; location / { root /app; index index.html; try_files $uri $uri/ /index.html; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!