silverbullet domain

This commit is contained in:
William 2026-05-22 19:01:04 -03:00
parent ec031e9d97
commit 22b4611617
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ config, inputs, ... }:
let
mkNginxVHosts = inputs.self.lib.mkNginxVHosts;
in
{
services = {
silverbullet = {
enable = true;
listenAddress = "127.0.0.1";
listenPort = 58002;
};
nginx.virtualHosts = mkNginxVHosts {
domains."notes.baduhai.dev".locations."/".proxyPass =
"http://${config.services.silverbullet.listenAddress}:${toString config.services.silverbullet.listenPort}/";
};
};
}

View file

@ -49,5 +49,10 @@
host = "trantor";
public = true;
}
{
name = "silverbullet";
domain = "notes.baduhai.dev";
host = "alexandria";
}
];
}