vaultwarden: add port in config

merge-requests/19/head
RatCornu 2025-05-29 19:48:20 +02:00
parent a8061ccb37
commit e9c99d2241
No known key found for this signature in database
GPG Key ID: B3BE02E379E6E8E2
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
environmentFile = config.age.secrets.env.path; environmentFile = config.age.secrets.env.path;
config = { config = {
ROCKET_PORT = 8222;
SENDMAIL_COMMAND = "${config.security.wrapperDir}/sendmail"; SENDMAIL_COMMAND = "${config.security.wrapperDir}/sendmail";
}; };
}; };
@ -38,7 +39,7 @@
services.nginx.virtualHosts."vaultwarden.crans.org" = { services.nginx.virtualHosts."vaultwarden.crans.org" = {
locations."/" = { locations."/" = {
proxyPass = "http://localhost:8222"; proxyPass = "http://localhost:${toString config.services.vaultwarden.config.ROCKET_PORT}";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };