Compare commits

...

2 commits

Author SHA1 Message Date
bc6b6eef1c
sakura: init vaultwarden
All checks were successful
ci/woodpecker/push/checks Pipeline was successful
2023-09-09 13:13:00 -04:00
60b9f31a2d
postgres: init vaultwarden 2023-09-09 13:12:47 -04:00
3 changed files with 28 additions and 0 deletions

View file

@ -48,6 +48,10 @@
name = "atticd"; name = "atticd";
ensurePermissions."DATABASE atticd" = "ALL PRIVILEGES"; ensurePermissions."DATABASE atticd" = "ALL PRIVILEGES";
} }
{
name = "vaultwarden";
ensurePermissions."DATABASE vaultwarden" = "ALL PRIVILEGES";
}
]; ];
ensureDatabases = [ ensureDatabases = [
"forgejo" "forgejo"
@ -56,6 +60,7 @@
"grafana" "grafana"
"authelia" "authelia"
"atticd" "atticd"
"vaultwarden"
]; ];
}; };
} }

View file

@ -104,6 +104,13 @@
tls.domains = [{main = "*.notohh.dev";}]; tls.domains = [{main = "*.notohh.dev";}];
tls.certresolver = "production"; tls.certresolver = "production";
}; };
vaultwarden = {
rule = "Host(`vault.notohh.dev`)";
entrypoints = ["websecure"];
service = "vaultwarden";
tls.domains = [{main = "*.notohh.dev";}];
tls.certresolver = "production";
};
}; };
services = { services = {
authelia.loadBalancer.servers = [{url = "http://localhost:9091";}]; authelia.loadBalancer.servers = [{url = "http://localhost:9091";}];
@ -118,6 +125,7 @@
woodpecker-server.loadBalancer.servers = [{url = "http://localhost:8200";}]; woodpecker-server.loadBalancer.servers = [{url = "http://localhost:8200";}];
atticd.loadBalancer.servers = [{url = "http://localhost:8100";}]; atticd.loadBalancer.servers = [{url = "http://localhost:8100";}];
hedgedoc.loadBalancer.servers = [{url = "http://localhost:3300";}]; hedgedoc.loadBalancer.servers = [{url = "http://localhost:3300";}];
vaultwarden.loadBalancer.servers = [{url = "http://localhost:8222";}];
}; };
}; };
}; };

View file

@ -0,0 +1,15 @@
{pkgs, ...}: {
services.vaultwarden = {
enable = true;
package = pkgs.vaultwarden-postgresql;
dbBackend = "postgresql";
config = {
SIGNUPS_ALLOWED = true;
DATABASE_URL = "postgresql://vaultwarden:vaultwarden@192.168.1.211:5432/vaultwarden";
LOG_LEVEL = "Info";
ROCKET_ADDRESS = "0.0.0.0";
ROCKET_PORT = 8222;
ROCKET_LOG = "critical";
};
};
}