mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
Enable key connector selfhost (#1707)
* initial commit * Add code for Key Connector feature * Add help URL to config * Fix folders for key-connector service * Fix paths for key-connector * fixing the env file builder when disabling the key connector * swapping a variable name Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
This commit is contained in:
@ -194,6 +194,22 @@ services:
|
||||
networks:
|
||||
- default
|
||||
- public
|
||||
|
||||
{{#if EnableKeyConnector}}
|
||||
key-connector:
|
||||
image: bitwarden/key-connector:latest
|
||||
container_name: bitwarden-key-connector
|
||||
restart: always
|
||||
volumes:
|
||||
- ../key-connector:/etc/bitwarden/key-connector
|
||||
- ../ca-certificates:/etc/bitwarden/ca-certificates
|
||||
- ../logs/key-connector:/etc/bitwarden/logs
|
||||
env_file:
|
||||
- ../env/key-connector.override.env
|
||||
networks:
|
||||
- default
|
||||
- public
|
||||
{{/if}}
|
||||
{{#if MssqlDataDockerVolume}}
|
||||
|
||||
volumes:
|
||||
|
@ -166,4 +166,10 @@ server {
|
||||
include /etc/nginx/security-headers.conf;
|
||||
add_header X-Frame-Options SAMEORIGIN;
|
||||
}
|
||||
|
||||
{{#if EnableKeyConnector}}
|
||||
location /key-connector/ {
|
||||
proxy_pass http://key-connector:5000/;
|
||||
}
|
||||
{{/if}}
|
||||
}
|
||||
|
Reference in New Issue
Block a user