nixos/middleman: Add config for Vaultwarden

This commit is contained in:
Jack O'Sullivan 2022-06-06 01:38:26 +01:00
parent ffeb333bbc
commit d2826ec1f4

View File

@ -183,6 +183,21 @@
forceSSL = true;
onlySSL = false;
};
"pass.nul.ie" =
let
upstream = "http://vaultwarden-ctr.${config.networking.domain}";
in
{
locations = {
"/".proxyPass = upstream;
"/notifications/hub" = {
proxyPass = upstream;
proxyWebsockets = true;
};
"/notifications/hub/negotiate".proxyPass = upstream;
};
useACMEHost = lib.my.pubDomain;
};
};
in
mkMerge [