mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(bw): websocket port deprecated
This commit is contained in:
parent
7fe6d48ff0
commit
4ee6ff86e3
4 changed files with 0 additions and 51 deletions
|
|
@ -16,14 +16,6 @@ in {
|
|||
assertion = config.ports.default.port == nixosConfig.services.vaultwarden.port;
|
||||
message = "port mismatch";
|
||||
})
|
||||
(nixosConfig: {
|
||||
assertion = nixosConfig.services.vaultwarden.websocketPort == null || config.ports.websocket.port == nixosConfig.services.vaultwarden.websocketPort;
|
||||
message = "websocketPort mismatch";
|
||||
})
|
||||
(nixosConfig: {
|
||||
assertion = config.ports.websocket.enable == (nixosConfig.services.vaultwarden.websocketPort != null);
|
||||
message = "websocketPort enable mismatch";
|
||||
})
|
||||
];
|
||||
};
|
||||
ports = {
|
||||
|
|
@ -32,18 +24,6 @@ in {
|
|||
protocol = "http";
|
||||
status.enable = mkAlmostOptionDefault true;
|
||||
};
|
||||
websocket = {
|
||||
port = mkAlmostOptionDefault 8223;
|
||||
protocol = "http";
|
||||
displayName = mkAlmostOptionDefault "WebSocket";
|
||||
status = {
|
||||
enable = mkAlmostOptionDefault true;
|
||||
gatus.http.websocket = {
|
||||
enable = mkAlmostOptionDefault true;
|
||||
status = mkAlmostOptionDefault 401;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue