Add domain configuration to vaultwarden

This commit is contained in:
Natsu Kagami 2022-05-12 18:59:30 -04:00
parent 667c81d349
commit 1f4aa4a96f
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51

View file

@ -11,6 +11,8 @@ let
port = 8001;
notificationsPort = 8002;
host = "bw.nkagami.me";
in
{
options.cloud.bitwarden = { };
@ -26,12 +28,11 @@ in
cloud.postgresql.databases = [ databaseUser ];
# traefik
cloud.traefik.hosts.bitwarden = {
inherit port;
host = "bw.nkagami.me";
inherit port host;
};
cloud.traefik.hosts.bitwarden-notifications = {
inherit host;
port = notificationsPort;
host = "bw.nkagami.me";
path = "/notifications/hub";
};
# systemd unit
@ -50,6 +51,8 @@ in
WEBSOCKET_ENABLED = "true";
WEBSOCKET_PORT = toString notificationsPort;
DOMAIN = "https://${host}";
};
serviceConfig = {
User = user;