I just bought a domain and am trying to set up HTTPS redirection on my R Plumber API. I made sure that the droplet IP is pointing to the domain and checked that it works. So currently I can access the plumber API over HTTP. I have an SSL Certificate on DO with my domain name. I tried using a Load Balancer but that didn’t work. Any guidance for how I would proceed?
I also tried using the “do_connect_https” function from the plumberDeploy package, but I keep getting the error “Error: Authentication with ssh server failed”
I would be happy to provide any more details if needed. Thank you in advance
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, If you deployed your R Plumber API with plumberDeploy package, then you have nginx installed and configured as reverse proxy for your R Plumber API. The only things you have to do are:
Questions:
1. What address and port does the R API listen on ? Execute the command:
sudo netstat -tulpn | grep R
2. How do you access R API in a browser ? I mean, what do you type in an address bar of a browser to get your API (e.g. http://mydomain.com/RAPI) ?
3. Do you know where you have your SSL certificate files stored ? You need to know it to configure nginx server block.
4. You probably use ufw to configure a firewall. Check if ufw is active and the port TCP 443 is listed:
sudo ufw status
5. Do you have DO Cloud Firewall active and configured for your droplet ? Check in DO control panel - Networking - Firewalls - configured firewall (if any) - Droplets.
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.