feat(storage01): init openbao #327

Merged
thubrecht merged 2 commits from openbao into main 2025-03-11 12:01:05 +01:00
3 changed files with 36 additions and 0 deletions
Showing only changes of commit a03164240e - Show all commits

View file

@ -20,6 +20,7 @@ lib.extra.mkConfig {
"garage" "garage"
"influxdb" "influxdb"
"netbird" "netbird"
"openbao"
"peertube" "peertube"
"prometheus" "prometheus"
"redirections" "redirections"

View file

@ -0,0 +1,34 @@
# SPDX-FileCopyrightText: 2025 Elias Coppens <elias.coppens@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
let
host = "vault.dgnum.eu";
port = 3100;
clusterPort = 3101;
in
{
services.openbao = {
enable = true;
settings = {
listener = {
tcp.address = "127.0.0.1:${builtins.toString port}";
cluster_address = "0.0.0.0:${toString clusterPort}";
};
storage.raft = {
path = "/var/lib/openbao/raft";
node_id = "storage01";
};
cluster_addr = "http://${host}:${toString clusterPort}";
api_addr = "https://${host}";
};
};
dgn-web.simpleProxies.openbao = {
inherit host port;
};
}

View file

@ -110,6 +110,7 @@ let
"victoria-metrics" # Victoria Metrics "victoria-metrics" # Victoria Metrics
"videos" # Peertube "videos" # Peertube
"pub" "pub"
"vault" # OpenBao
# Garage S3 # Garage S3
"*.cdn" "*.cdn"