Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

309
Vistas
Habilite SSL usando certbot y nginx

Estoy tratando de configurar httpS en mi producción de Strapi, pero es muy difícil. Seguí el tutorial escrito por derrickmehaffy, pero no me funciona. :'(

Mi servicio pm2: configuración pm2

Mi archivo /etc/nginx/conf.d/upstream.conf:

 # Strapi upstream server upstream strapi-gatsby { server localhost:1337; }

Mi archivo /etc/nginx/sites-available/strapi.live-for-good.org.conf:

 server { # Listen HTTP listen 80; server_name strapi.live-for-good.org; # Define LE Location location ~ ^/.well-known/acme-challenge/ { default_type "text/plain"; root /var/www/html; } # Else Redirect to HTTPS // API # location / { # return 301 https://$host$request_uri; # } }

Borré el paquete predeterminado en sitios disponibles y sitios habilitados , hice el enlace y cuando quería verificarlo con el servicio nginx configtest , falla

Pero, cuando lancé sudo nginx -t && sudo service nginx reload , obtuve esto:

 nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful

Sistema

 Node.js version: 12.16.1 NPM version: 6.13.4 Strapi version: 3.0.0-beta.19.3 Database: mongoDB on MLab Operating system: ubuntu 18.04
over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda