Compare commits
2 commits
a00e4c85fa
...
bc6b6eef1c
Author | SHA1 | Date | |
---|---|---|---|
bc6b6eef1c | |||
60b9f31a2d |
3 changed files with 28 additions and 0 deletions
|
@ -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"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
15
hosts/sakura/services/vaultwarden.nix
Normal file
15
hosts/sakura/services/vaultwarden.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue