1、安装epel docker-ce源
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
2、安装docker-ce 和caddy
yum install -y docker-ce caddy
3、安装bitwarden_rs
#SIGNUPS_ALLOWED=true启用注册
docker run -d --name bitwarden -v /app/bw-data/:/data/ -e SIGNUPS_ALLOWED=false -p 127.0.0.1:7080:80 --restart unless-stopped bitwardenrs/server:latest
token生成:openssl rand -base64 48
ADMIN_TOKEN=tGiUpDBZNrnvm7jrPQTIElsd5H2L8mcQMXcnmRF5BGU8a4eaSEjMIZMY+GiTSBMW
SIGNUPS_ALLOWED=true
DOMAIN=https://*.xue.im
ROCKET_WORKERS=10
WEB_VAULT_ENABLED=true
4、配置caddy反代
#路径/etc/caddy/conf.d/od.conf
1.hai.com {
gzip
tls [email protected]
proxy / http://127.0.0.1:7080/ {
websocket
transparent
}
}