Coder Social home page Coder Social logo

vaultwarden-render's Introduction

Vaultwarden on Render

This is a sample repo to run the latest version of Vaultwarden on Render. You need to add any free database backend (like PlanetScale) using the environment variables provided by the Vaultwarden Wiki. Please check their wiki/documentation for more environment variables and how to use them. Below you can find some of the required (bare minimum to run this hosting configuration) and recommended ones:

Environment Variable Required? Explanation
ADMIN_TOKEN No For admin access to admin dashboard, use this wiki page for instructions on how to generate a secure token. This repo will auto generate a value which you can change later by going to your Render dashboard then go to your service then go to Environment tab end edit its value. If you want to completely disable it then remove the environment variable entirely
DATABASE_URL Yes For database access to store info
SIGNUPS_ALLOWED No Allows users to sign up, set it to false after you make your own account on your hosted instance if you don't want anyone else to be able to sign up, allowed values are true or false
WEB_VAULT_ENABLED No Allows access to the web interface without needing the desktop and mobile clients or browser extensions. Values are true or false

Connection String

You can get it from whatever host you use.

PlanetScale

For PlanetScale it provides multiple formats, you need to find the one that looks like this:

<database_type>://<username>:<password>@<host>/<database_name>

Manually append this to the end:

?sslaccept=strict&ssl_ca=/etc/ssl/certs/ca-certificates.crt

End result format:

<database_type>://<username>:<password>@<host>/<database_name>?sslaccept=strict&ssl_ca=/etc/ssl/certs/ca-certificates.crt

Other free database providers:

  • Supabase
  • Fly.io
  • ElephantSQL For more as well as usage limits and databse types, check this gist. Please note that it must be a database backend supported by Vaultwarden itself like MySQL and Postgres! If you find any more comprehensive list of free database backends, please hit me up in issues.

Deployment

Deploy to Render

Upgrading

This uses Vaultwarden's latest Docker image, so just manually deploy latest commit on Render. If you get DB connection errors, shut it down completely from the settings and then restart after a few minutes or set the DB connections environment variable to a number less than or equal to half the max limit provided by the DB hosting service to avoid this problem.

vaultwarden-render's People

Contributors

mostafa-abdelbrr 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.