vaultwarden serves websockets on the same port as http

This commit is contained in:
Joakim Repomaa
2025-02-07 19:45:52 +02:00
committed by Joakim Repomaa
parent 599ca53f1d
commit 2d6e8607f3

View File

@@ -11,8 +11,6 @@ in
DOMAIN = "https://${fqdn}";
DATABASE_URL = "postgres://%2Fvar%2Frun%2Fpostgresql/vaultwarden";
WEBSOCKET_ENABLED = true;
WEBSOCKET_ADDRESS = "127.0.0.1";
WEBSOCKET_PORT = 3012;
SIGNUPS_VERIFY = true;
PASSWORD_ITERATIONS = 600000;
YUBICO_CLIENT_ID = 86799;
@@ -26,10 +24,7 @@ in
};
};
modules.webserver.vHosts.${fqdn}.locations = {
"/".proxy = "http://127.0.0.1:8000";
"/notifications/hub".proxy = "http://127.0.0.1:3012";
};
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:8000";
services.postgresql = {
ensureDatabases = [ "vaultwarden" ];