how configure plumber over https

Hi,
I already have an api with plumber and all works fine, but I need to consume with https and I really don't know how to configure the rserver in particular, I really appreciate if you can help me with

  1. How can I expose my rplumber api over https? (some guide)
  2. Can I use let's encrypt? (if yes and has any special configuration, how?)

Also, I am using an AWS EC2 and I am not using Route53.

Thank you for your answers,

You would need to front plumber by a service providing SSL, could be nginx, could be apache. You could also use CloudFlare SSL if you had your own domain.

web server providing SSL > proxy pass to plumber API > plumber API

" Unfortunately, Plumber does not implement HTTPS support natively, but most of the documented hosting options offer ways to deploy HTTPS and HSTS in front of your Plumber API."

Update: Using Free Let’s Encrypt SSL/TLS Certificates with NGINX - NGINX

An example nginx.conf

server {
  listen 80 default_server;
  listen [::]:80 default_server;
  server_name $DOMAIN$;
  return 301 https://$server_name$request_uri;
}

server {
  listen 443 ssl;
  listen [::]:443 ssl;
  server_name $DOMAIN$;

  ssl_certificate /etc/letsencrypt/live/$DOMAIN$/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/$DOMAIN$/privkey.pem;

  include /etc/nginx/sites-available/plumber-apis/*;

  location /.well-known/ {
    root /var/certbot/;
  }

  location /$API_PATH$/ {
    proxy_pass http://localhost:$API_PORT$/;
    proxy_set_header Host $host;
  }
}
2 Likes

Thank you, could you tell me how to do with cloudflare?, I already have there the domain with a subdomain pointing to the r-server (does not response), I am using the free option of cloudflare.

Cloudflare Free SSL/TLS | Get SSL Certificates | Cloudflare

1 Like

Thank you a lot, your answers help me to solve how to configure it.
Finally, I configure the reverse proxy with nginx and installed let's encrypt certify with a full encryption mode in cloudflare.
Regards,

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.