Giter Club home page Giter Club logo

Comments (2)

jcs avatar jcs commented on July 23, 2024

At a minimum, you can just run it on your local machine and point the browser extension at it.

  1. Install the most recent stable version of Ruby that your OS provides (2.4 series, probably)
  2. gem install bundler
  3. git clone https://github.com/jcs/bitwarden-ruby.git
  4. cd bitwarden-ruby
  5. bundle install --deployment
  6. env ALLOW_SIGNUPS=1 bundle exec rackup

You'll now have a server running at http://127.0.0.1:9292/ that you can configure the browser extension to point to.

Actual deployment on a server is more complicated and will require a front-end web server (nginx, Apache, etc.), SSL/TLS, supervising of the server processes to start at boot, etc. Assume a deployment directory of /var/www/bitwarden-ruby and running the server as user bitwarden:

  1. Install the most recent stable version of Ruby that your OS provides (2.4 series, probably)
  2. gem install bundler
  3. git clone https://github.com/jcs/bitwarden-ruby.git
  4. mv bitwarden-ruby /var/www
  5. cd bitwarden-ruby
  6. bundle install --deployment
  7. useradd bitwarden
  8. mkdir db log tmp; chown bitwarden db log tmp
  9. sudo -u bitwarden env ALLOW_SIGNUPS=1 bundle exec unicorn -E production -l /var/www/bitwarden-ruby/tmp/bitwarden.sock

You'll now have a FastCGI listener running in /var/www/bitwarden-ruby/tmp/bitwarden.sock that you can configure nginx/Apache/etc. to proxy requests to. You'll want to setup SSL/TLS for it, of course.

Once it's running, you can configure the Bitwarden apps to your URL. After creating your account, you'll probably want to run it without ALLOW_SIGNUPS defined. Running the unicorn process at boot and monitoring it will depend on your OS.

from rubywarden.

Pschittt avatar Pschittt commented on July 23, 2024

Thanks !

I’ve run it on docker, and it works great.

from rubywarden.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.