VaultWarden: Difference between revisions

From FlowerHouseWiki
Line 61: Line 61:
=== Build bitwarden_rs ===
=== Build bitwarden_rs ===
<p>To build bitwarden_rs, enough CPU and RAM is needed for it to work, with 4 Cores and 1GB RAM it worked fine.</p>
<p>To build bitwarden_rs, enough CPU and RAM is needed for it to work, with 4 Cores and 1GB RAM it worked fine.</p>
<p>Clone the bitwarden_rs repository and use cargo to build it:</p>


=== Install WebVault ===
=== Install WebVault ===

Revision as of 20:06, 23 February 2021

Bitwarden.png

Network


IP: 192.168.88.??
MAC: B6:04:55:14:93:89
Domain: keys.flowerhouse.at

System


OS: Debian Buster
RAM: 512MB
Cores: 1
Privileged: No

The BitWarden-LXC is reachable under 192.168.88.?? which is located in the ServerVLAN.

The subdomain is keys.flowerhouse.at which is handled by the ReverseProxy.

Basic Setup

The original BitWarden-Server is only available with docker, this an alternative software programmed with rust.

Install the required packages:

apt install git curl wget htop pkg-config openssl libssl1.1 libssl-dev build-essential

Rust

Download script and follow installer:

curl https://sh.rustup.rs -sSf | sh

Create environment variable:

echo 'export PATH=~/.cargo/bin:$PATH' >> ~/.bashrc
export PATH=~/.cargo/bin:$PATH

After running following command:

which rustc

It should show the path:

/root/.cargo/bin/rustc

NodeJS

Download latest NodeJS package:

wget https://nodejs.org/dist/latest/node-v15.10.0-linux-x64.tar.xz

Unpack and move folder:

tar -xvf nnode-v15.10.0-linux-x64.tar.xz
mv node-v15.10.0-linux-x64.tar.xz /opt/

Create link:

ln -sf /opt/node-v15.10.0-linux-x64 /opt/node

Build bitwarden_rs

To build bitwarden_rs, enough CPU and RAM is needed for it to work, with 4 Cores and 1GB RAM it worked fine.

Clone the bitwarden_rs repository and use cargo to build it:

Install WebVault

Sources