nixos/middleman: Add config for Vaultwarden
This commit is contained in:
parent
ffeb333bbc
commit
d2826ec1f4
@ -183,6 +183,21 @@
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
onlySSL = false;
|
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
|
in
|
||||||
mkMerge [
|
mkMerge [
|
||||||
|
Loading…
Reference in New Issue
Block a user