Add domain configuration to vaultwarden
This commit is contained in:
parent
667c81d349
commit
1f4aa4a96f
|
@ -11,6 +11,8 @@ let
|
||||||
|
|
||||||
port = 8001;
|
port = 8001;
|
||||||
notificationsPort = 8002;
|
notificationsPort = 8002;
|
||||||
|
|
||||||
|
host = "bw.nkagami.me";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.cloud.bitwarden = { };
|
options.cloud.bitwarden = { };
|
||||||
|
@ -26,12 +28,11 @@ in
|
||||||
cloud.postgresql.databases = [ databaseUser ];
|
cloud.postgresql.databases = [ databaseUser ];
|
||||||
# traefik
|
# traefik
|
||||||
cloud.traefik.hosts.bitwarden = {
|
cloud.traefik.hosts.bitwarden = {
|
||||||
inherit port;
|
inherit port host;
|
||||||
host = "bw.nkagami.me";
|
|
||||||
};
|
};
|
||||||
cloud.traefik.hosts.bitwarden-notifications = {
|
cloud.traefik.hosts.bitwarden-notifications = {
|
||||||
|
inherit host;
|
||||||
port = notificationsPort;
|
port = notificationsPort;
|
||||||
host = "bw.nkagami.me";
|
|
||||||
path = "/notifications/hub";
|
path = "/notifications/hub";
|
||||||
};
|
};
|
||||||
# systemd unit
|
# systemd unit
|
||||||
|
@ -50,6 +51,8 @@ in
|
||||||
|
|
||||||
WEBSOCKET_ENABLED = "true";
|
WEBSOCKET_ENABLED = "true";
|
||||||
WEBSOCKET_PORT = toString notificationsPort;
|
WEBSOCKET_PORT = toString notificationsPort;
|
||||||
|
|
||||||
|
DOMAIN = "https://${host}";
|
||||||
};
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = user;
|
User = user;
|
||||||
|
|
Loading…
Reference in a new issue