vaultwarden serves websockets on the same port as http
This commit is contained in:
committed by
Joakim Repomaa
parent
599ca53f1d
commit
2d6e8607f3
@@ -11,8 +11,6 @@ in
|
|||||||
DOMAIN = "https://${fqdn}";
|
DOMAIN = "https://${fqdn}";
|
||||||
DATABASE_URL = "postgres://%2Fvar%2Frun%2Fpostgresql/vaultwarden";
|
DATABASE_URL = "postgres://%2Fvar%2Frun%2Fpostgresql/vaultwarden";
|
||||||
WEBSOCKET_ENABLED = true;
|
WEBSOCKET_ENABLED = true;
|
||||||
WEBSOCKET_ADDRESS = "127.0.0.1";
|
|
||||||
WEBSOCKET_PORT = 3012;
|
|
||||||
SIGNUPS_VERIFY = true;
|
SIGNUPS_VERIFY = true;
|
||||||
PASSWORD_ITERATIONS = 600000;
|
PASSWORD_ITERATIONS = 600000;
|
||||||
YUBICO_CLIENT_ID = 86799;
|
YUBICO_CLIENT_ID = 86799;
|
||||||
@@ -26,10 +24,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.webserver.vHosts.${fqdn}.locations = {
|
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:8000";
|
||||||
"/".proxy = "http://127.0.0.1:8000";
|
|
||||||
"/notifications/hub".proxy = "http://127.0.0.1:3012";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
ensureDatabases = [ "vaultwarden" ];
|
ensureDatabases = [ "vaultwarden" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user