Update
This commit is contained in:
parent
ad339a19a6
commit
c852176e0d
@ -1,25 +1,22 @@
|
|||||||
# Password manager
|
# Password manager
|
||||||
let
|
let
|
||||||
hostname = "vault.anotherhadi.com";
|
hostname = "vault.anotherhadi.com";
|
||||||
url = "https://"+hostname;
|
url = "https://" + hostname;
|
||||||
port = 8222;
|
port = 8222;
|
||||||
in{
|
in {
|
||||||
services.vaultwarden = {
|
services.vaultwarden = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
DOMAIN = url;
|
DOMAIN = url;
|
||||||
SIGNUPS_ALLOWED = false;
|
SIGNUPS_ALLOWED = true;
|
||||||
ROCKET_ADDRESS = "127.0.0.1";
|
ROCKET_ADDRESS = "127.0.0.1";
|
||||||
ROCKET_PORT = port;
|
ROCKET_PORT = port;
|
||||||
ROCKET_LOG = "critical";
|
ROCKET_LOG = "critical";
|
||||||
};
|
|
||||||
};
|
|
||||||
services.nginx.virtualHosts.${hostname} = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://127.0.0.1:${port}";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
services.nginx.virtualHosts.${hostname} = {
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = { proxyPass = "http://127.0.0.1:${port}"; };
|
||||||
|
};
|
||||||
networking.firewall.allowedTCPPorts = [ port ];
|
networking.firewall.allowedTCPPorts = [ port ];
|
||||||
}
|
}
|
@ -8,6 +8,7 @@
|
|||||||
../modules/server/cloudflare-dyndns.nix
|
../modules/server/cloudflare-dyndns.nix
|
||||||
../modules/server/nginx.nix
|
../modules/server/nginx.nix
|
||||||
../modules/server/nextcloud.nix
|
../modules/server/nextcloud.nix
|
||||||
|
../modules/server/vaultwarden.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
|
Loading…
Reference in New Issue
Block a user