Giter Site home page Giter Site logo

bitwardenrs_heroku's Introduction

Run bitwarden_rs on heroku

Deploy

Based on official bitwarden_rs docker image, added customized scripts to setup in heroku enviroment.

Goal

  • Deploy a reliable bitwarden for free as easy as possible.
    • Deploying: Almost no command line.
    • Maintainance: Almost zero.
    • As more functions as budget support
      1. Essentials and backups.
      2. TODO: Realtime syncing cross multiple devices.
      3. TODO: Attachments.
      4. TODO: Icons.

Why Heroku

  • Bitwarden_rs is a lightweight service that able to run on heroku's free dyno ( < 512MB ram).
  • Free quota (average 18 horus/day) lasts for one month when notification requests are blocked.
  • Verified user have extensible free addons to make life easy, including database, logging, backup, etc.

Features

Addons

Limitation

TODO

  • Auto Update
    • Github Action + Heroku, create a branch 'auto-update' to be used by heroku, this branch will periodically commit then triggers app rebuid in heroku to catch any updates of bitwarden_rs
  • Unverified heroku user solution
    • Self owned DATABASE.
    • Persistent local storage tricks.

FAQ

  • Admin panel
    • Set ENABLE_ADMIN=true in heroku enviroment.
    • Use GEN_ADMIN_TOKEN as ADMIN_TOKEN. This is auto generated secret when app initialized.
  • Configuration
    • All enviroment of heroku will be treated as enviroment of bitwarden_rs.
  • Forcely loggout after a while
    • Run heroku_set_rsa.sh to enable persistent rsa key.
  • App costs 24 dynos/day, aka it didn't sleep when idle.
    • Mostly caused by requests of '/notifications' and '/icons', see more
    • Notifications are triggered every 4 minutes by chrome extension or desktop app.
    • Icons are triggered if icon server url is not set to others.
    • My method is to block them by Cloudflare firewall.

bitwardenrs_heroku's People

Contributors

bbvv77 avatar std2main avatar

Watchers

 avatar

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.