20 lines
486 B
Nix
20 lines
486 B
Nix
{ 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;
|
|
locations = { "/" = { proxyPass = "http://127.0.0.1:8200"; }; };
|
|
};
|
|
|
|
services.nginx.logError = "/var/log/nginx/debug.log debug";
|
|
#networking.firewall.allowedTCPPorts = [ 8200 ];
|
|
}
|