n/zorigami: fix vaultwarden. whoops

Robert Gerus 2023-12-07 00:38:13 +01:00
parent 0213d43e94
commit a5ecf86dc2
1 changed files with 18 additions and 0 deletions

View File

@ -312,6 +312,24 @@
};
environmentFile = config.age.secrets.vaultwardenPlainMail.path;
};
services.nginx.virtualHosts."vaultwarden.is-a.cat" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${
toString config.services.vaultwarden.config.ROCKET_PORT
}";
proxyWebsockets = true;
};
locations."/notifications/hub" = {
proxyPass = "http://localhost:3012";
proxyWebsockets = true;
};
locations."/notifications/hub/negotiate" = {
proxyPass = "http://localhost:8812";
proxyWebsockets = true;
};
};
# need to figure out something fancy about network configuration
networking.hostName = "zorigami";