Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS support/documentation #143

Open
hongooi73 opened this issue Apr 27, 2020 · 6 comments
Open

HTTPS support/documentation #143

hongooi73 opened this issue Apr 27, 2020 · 6 comments
Labels

Comments

@hongooi73
Copy link

Hello,

Apologies if this is a noobish question. I notice that the readme states RestRserve supports HTTPS; however is there anywhere that the process of adding this is documented?

@dselivanov
Copy link
Collaborator

We have an example here - https://github.com/rexyai/RestRserve/blob/master/inst/examples/ssl/app.R.

Contribution in a form of article would be appreciated!

@dselivanov dselivanov added docs and removed question labels Apr 28, 2020
@blosloos
Copy link

blosloos commented Jan 26, 2021

Yes, a more detailed documentation to use TLS over https with RestRserve would be wonderful; plain http may not be preferred by everyone nowadays. I absolutely appreciate your package, and have been using it to set up a http POST - it works great, and is well documented!

Have been trying to make sense of examples/ssl for a while until I got https working with a slightly different setup than outlined there. Especially by struggling with (a) the underlying Rserve configs (e.g., what's a QAP server, set by another port 6313?) and (b) CA certification via, e.g., certbot and Let's encrypt (which in itself works well, too, on CentOS).

@dselivanov
Copy link
Collaborator

Yeah, encryption is a bit complicated topic. I tend to use load balancers (HAproxy or nginx) in front of RestRserve which do SSL termination. Or in practice I much more frequently use AWS ELB which does SSL termination and then routes traffic within private network to right services.

So Rserve and RestRserve do support SSL/TLS, but in practice I never used this feature.

@blosloos if you want to add an article I can help to review. But I don't see myself adding comprehensive docs about https any time soon.

@blosloos
Copy link

blosloos commented Feb 4, 2021

Thanks for your reply and details! Yes, a short article would be great, and I would add one (i.e., how to set up TLS with RestRserve on a UNIX server on some port, using certbot and let's encrypt, maybe with some hints/links on how certificates and the private/public key concept works for signatures and encryption, lots of fragmented information otherwise) - similarly, if I had the time ...

@pkinif
Copy link

pkinif commented Feb 19, 2022

Hi @blosloos, @dselivanov,

I am trying to deploy my RestRserve API using HTTPS/docker-compose/nginx/certbot. Deploying on port 8080 is not a problem for me, but it gets stuck as soon as I want to integrate HTTPS. If I understand correctly, RestRserve does not work with port 453 but port 8483? Do you know if, since your previous exchange, new documentation has been published somewhere?

@dselivanov
Copy link
Collaborator

Could you please describe your architecture in more details? Which service is responsible for ssl offloading? Nginx? Typically I recommend delegate SSL offloading to loadbalancer such as nginx or haproxy and make restrserve work in plain http mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants