Report this

What is the reason for this report?

configurar certificado SSLl para dominio y para algunos puertos adicionales

Posted on July 9, 2021

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.



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.