sakura: init vaultwarden
All checks were successful
ci/woodpecker/push/checks Pipeline was successful

This commit is contained in:
notohh 2023-09-09 13:13:00 -04:00
parent 60b9f31a2d
commit bc6b6eef1c
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 23 additions and 0 deletions

View file

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