2021-12-28 21:42:46 +00:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
services.vault = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.vault-bin;
|
|
|
|
address = "127.0.0.1:8200";
|
|
|
|
storageBackend = "file";
|
|
|
|
extraConfig = ''
|
|
|
|
ui = true
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
services.nginx.virtualHosts."vault.owo.monster" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
2022-01-17 19:55:34 +00:00
|
|
|
locations = { "/" = { proxyPass = "http://127.0.0.1:8200"; }; };
|
2021-12-28 21:42:46 +00:00
|
|
|
};
|
2022-06-01 07:13:31 +01:00
|
|
|
|
|
|
|
services.nginx.logError = "/var/log/nginx/debug.log debug";
|
2021-12-28 21:42:46 +00:00
|
|
|
#networking.firewall.allowedTCPPorts = [ 8200 ];
|
|
|
|
}
|