fix pw
This commit is contained in:
parent
e26f86fd85
commit
642d297710
|
@ -30,6 +30,7 @@
|
|||
./tail.nix
|
||||
./matrix.nix
|
||||
./coturn.nix
|
||||
./vaultwarden.nix
|
||||
(import ./mail.nix {inherit mailserver;})
|
||||
(import ./homepage.nix {inherit homepage;})
|
||||
];
|
||||
|
|
22
vaultwarden.nix
Normal file
22
vaultwarden.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ ... }:
|
||||
|
||||
let
|
||||
domain = "pw.sondell.org";
|
||||
port = "8222";
|
||||
in
|
||||
{
|
||||
#
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
services.nginx.virtualHosts.${domain} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${port}/";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue