Skip to content

Commit 945e8f0

Browse files
committed
nova: configure vaultwarden later
1 parent 63d1f33 commit 945e8f0

1 file changed

Lines changed: 23 additions & 3 deletions

File tree

nixos/hosts/nova/services.nix

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
{ config, pkgs, pkgs-unstable, ... }:
1+
{
2+
config,
3+
pkgs,
4+
pkgs-unstable,
5+
...
6+
}:
27

38
{
49
services = {
@@ -44,8 +49,9 @@
4449
tunnels."50687d84-87ea-4d7c-a635-548cb7dec14c" = {
4550
credentialsFile = config.sops.secrets.cloudflared.path;
4651
ingress = {
47-
"gallery.aspian.my.id" = "http://localhost:2283";
48-
"couchdb.aspian.my.id" = "http://localhost:5984";
52+
"gallery.aspian.my.id" = "http://127.0.0.1:2283";
53+
"couchdb.aspian.my.id" = "http://127.0.0.1:5984";
54+
"vault.aspian.my.id" = "http://127.0.0.1:8222";
4955
};
5056
default = "http_status:404";
5157
};
@@ -138,6 +144,20 @@
138144

139145
redis.servers.immich.logLevel = "warning";
140146

147+
vaultwarden = {
148+
enable = false;
149+
dbBackend = "postgresql";
150+
configurePostgres = true;
151+
domain = "vault.aspian.my.id";
152+
config = {
153+
ROCKET_ADDRESS = "127.0.0.1";
154+
ROCKET_PORT = 8222;
155+
ENABLE_WEBSOCKET = true;
156+
# SIGNUPS_ALLOWED = true; # first registration = admin; disable after invite
157+
ROCKET_LOG = "critical";
158+
};
159+
};
160+
141161
swapspace = {
142162
enable = true;
143163
settings = {

0 commit comments

Comments
 (0)