mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
load ca-certs for api and identity
This commit is contained in:
parent
4ce69dac2b
commit
d2bdaa8baa
@ -24,9 +24,13 @@ chown -R $USERNAME:$USERNAME /app
|
||||
chown -R $USERNAME:$USERNAME /jobs
|
||||
mkdir -p /etc/bitwarden/core
|
||||
mkdir -p /etc/bitwarden/logs
|
||||
mkdir -p /etc/bitwarden/ca-certificates
|
||||
chown -R $USERNAME:$USERNAME /etc/bitwarden
|
||||
|
||||
env >> /etc/environment
|
||||
cron
|
||||
|
||||
cp /etc/bitwarden/ca-certificates/*.crt /usr/local/share/ca-certificates/ \
|
||||
&& update-ca-certificates
|
||||
|
||||
gosu bitwarden:bitwarden dotnet /app/Api.dll
|
||||
|
@ -21,9 +21,13 @@ fi
|
||||
mkdir -p /etc/bitwarden/identity
|
||||
mkdir -p /etc/bitwarden/core
|
||||
mkdir -p /etc/bitwarden/logs
|
||||
mkdir -p /etc/bitwarden/ca-certificates
|
||||
chown -R $USERNAME:$USERNAME /etc/bitwarden
|
||||
|
||||
cp /etc/bitwarden/identity/identity.pfx /app/identity.pfx
|
||||
chown -R $USERNAME:$USERNAME /app
|
||||
|
||||
cp /etc/bitwarden/ca-certificates/*.crt /usr/local/share/ca-certificates/ \
|
||||
&& update-ca-certificates
|
||||
|
||||
gosu $USERNAME:$USERNAME dotnet /app/Identity.dll
|
||||
|
@ -148,6 +148,7 @@ services:
|
||||
restart: always
|
||||
volumes:
|
||||
- ../core:/etc/bitwarden/core
|
||||
- ../ca-certificates:/etc/bitwarden/ca-certificates
|
||||
- ../logs/api:/etc/bitwarden/logs
|
||||
env_file:
|
||||
- global.env
|
||||
@ -161,6 +162,7 @@ services:
|
||||
volumes:
|
||||
- ../identity:/etc/bitwarden/identity
|
||||
- ../core:/etc/bitwarden/core
|
||||
- ../ca-certificates:/etc/bitwarden/ca-certificates
|
||||
- ../logs/identity:/etc/bitwarden/logs
|
||||
env_file:
|
||||
- global.env
|
||||
|
Loading…
Reference in New Issue
Block a user