By jomtarija
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.