How to build a bitwarden_rs to protect your password

作者: shaneZhang 分类: 互联网技术 发布时间: 2021-01-12 20:03

Install the rust environment

apt install git make gcc libssl-dev pkg-config curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

Install the bitwarden_rs

git clone https://github.com/dani-garcia/bitwarden_rs/
cd bitwarden_rs/
cargo build --features sqlite --release
mkdir /usr/local/bitwarden
cp target/release/bitwarden_rs /usr/local/bitwarden/

Install the web-vault

https://github.com/dani-garcia/bw_web_builds/releases

Start the service

export WEB_VAULT_FOLDER=/usr/local/bitwarden/web-vault
export DATA_FOLDER=/usr/local/bitwarden/data
sudo ln -s /usr/local/bitwarden/bitwarden_rs /usr/local/bin/bitwarden
/usr/local/bin/bitwarden

Some environment config settings

export WEB_VAULT_FOLDER=/usr/local/bitwarden/web-vault
export DATA_FOLDER=/etc/bitwarden/data
export ROCKET_ADDRESS=127.0.0.1
export ROCKET_PORT=8537
export SIGNUPS_ALLOWED=false
export INVITATIONS_ALLOWED=false
export DOMAIN=https://pass.zhangyuqing.me
export SHOW_PASSWORD_HINT=false
export LOG_FILE=/var/log/bitwarden/bitwarden.log
export EXTENDED_LOGGING=true
export LOG_LEVEL=info

Some other links:

https://www.haiyun.me/archives/1360.html

本页面支持繁体中文友好显示:How to build a bitwarden_rs to protect your password

如果觉得我的文章对您有用,请随意打赏。如果有其他问题请联系博主QQ(909491009)或者下方留言!

发表评论

邮箱地址不会被公开。 必填项已用*标注