jcs / rubywarden

An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
ISC License
592 stars 49 forks source link

[help wanted] HTTPS Support #97

Closed hgdfjhgsfjgf closed 5 years ago

hgdfjhgsfjgf commented 5 years ago

This project is incredible.

I was wondering if someone could explain to me if I could set up this server with HTTPS support. I'm a Ruby noob and I don't understand if it should be added to this code or via some other way.

omega123456 commented 5 years ago

You can set up a webserver that proxies it via https. Can do it with apache or nginx.

https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension

jcs commented 5 years ago

One could probably use Puma instead of Unicorn for TLS support but I think it's better to separate the two and run some front-end server with TLS support in front of the Unicorn processes, such as nginx.

pitr commented 5 years ago

Alternatively, Cloudflare supports free HTTPS support

hgdfjhgsfjgf commented 5 years ago

Thank you. It worked.

It works fine with the Chrome extension from BitWarden, but the app gives an error: "There is a problem connecting to the server" when I use HTTPS. Is this a bug in the app or in this server?