nixfiles/hosts/vault/profiles/vault.nix

20 lines
418 B
Nix
Raw Normal View History

{pkgs, ...}: {
services.vault = {
enable = true;
package = pkgs.vault-bin;
address = "127.0.0.1:8200";
storageBackend = "file";
extraConfig = ''
ui = true
'';
};
networking.firewall.allowedTCPPorts = [80 443];
services.nginx.virtualHosts."vault.owo.monster" = {
forceSSL = true;
enableACME = true;
locations = {"/" = {proxyPass = "http://127.0.0.1:8200";};};
};
}