Question

configurar certificado SSLl para dominio y para algunos puertos adicionales

Estoy trabajando con un webhook para dialogflow, logre hacerlo con ngrok me funciono bien, pero quiero hacerlo en digital ocean con una gota. Probe con la ip de mi servidor y el puerto pero no me funciona (por motivos de seguridad), compre un dominio e instale un certificado ssl. www.misitio.com y el certificado ssl se configuro correctamente. El problema esta cuando uso el www.misitio.com:3333 no es un sitio seguro y el webhook no funciona, utilice apache y ngnix pero no tube buenos resultados, podrian orientarme sobre como lograr esto.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

What you could do is setup Nginx as a reverse proxy so that when visiting your domain on port 443 like this https://your_domain.com and forward the traffic in the background to port 3333.

Here is an example of an Nginx reverse proxy setup:

server {
    listen 80;
    server_name yourdomain.com www.yourdomain.com;

    location / {
        proxy_pass http://127.0.0.1:3333;
        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;
    }
}

Hope that this helps. Regards, Bobby