diff --git a/Building-binary.md b/Building-binary.md index 0ad9804..4bb3e4f 100644 --- a/Building-binary.md +++ b/Building-binary.md @@ -1,3 +1,5 @@ +If you don't want to build the binary yourself, you can look if bitwarden_rs was already [packaged for your linux distribution](https://github.com/dani-garcia/bitwarden_rs/wiki/Available-packages). + ## Dependencies - `Rust nightly` (strongly recommended to use [rustup](https://rustup.rs/)) - `OpenSSL` (should be available in path, install through your system's package manager or use the [prebuilt binaries](https://wiki.openssl.org/index.php/Binaries)) @@ -21,6 +23,13 @@ cargo run --features mysql --release # or just compile with mysql (binary located in target/release/bitwarden_rs) cargo build --features mysql --release ``` +### PostgreSQL backend +```sh +# Compile with postgresql backend and run +cargo run --features postgresql --release +# or just compile with postgresql (binary located in target/release/bitwarden_rs) +cargo build --features postgresql --release +``` When run, the server is accessible in [http://localhost:8000](http://localhost:8000). @@ -70,6 +79,10 @@ The available configuration options are documented in the default `.env` file, a Note: the environment variables override the values set in the `.env` file. +## More information for deployment +- [Setting up a reverse proxy](https://github.com/dani-garcia/bitwarden_rs/wiki/Proxy-examples) +- [Setting up Autostart via systemd](https://github.com/dani-garcia/bitwarden_rs/wiki/Setup-as-a-systemd-service) + ## How to recreate database schemas for the sqlite backend (for developers) Install diesel-cli with cargo: ```sh