Compare commits
2 commits
ec031e9d97
...
13f29c0d7d
| Author | SHA1 | Date | |
|---|---|---|---|
| 13f29c0d7d | |||
| 22b4611617 |
3 changed files with 57 additions and 0 deletions
27
aspects/hosts/_alexandria/open-webui.nix
Normal file
27
aspects/hosts/_alexandria/open-webui.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, config, inputs, ... }:
|
||||
let
|
||||
mkNginxVHosts = inputs.self.lib.mkNginxVHosts;
|
||||
in
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
open-webui = (import inputs.nixpkgs {
|
||||
inherit (prev) system;
|
||||
config.allowUnfree = true;
|
||||
}).open-webui;
|
||||
})
|
||||
];
|
||||
|
||||
services.open-webui = {
|
||||
enable = true;
|
||||
environment = {
|
||||
SCARF_NO_ANALYTICS = "True";
|
||||
DO_NOT_TRACK = "True";
|
||||
ANONYMIZED_TELEMETRY = "False";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts = mkNginxVHosts {
|
||||
domains."ai.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:8080/";
|
||||
};
|
||||
}
|
||||
20
aspects/hosts/_alexandria/silverbullet.nix
Normal file
20
aspects/hosts/_alexandria/silverbullet.nix
Normal 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}/";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -49,5 +49,15 @@
|
|||
host = "trantor";
|
||||
public = true;
|
||||
}
|
||||
{
|
||||
name = "silverbullet";
|
||||
domain = "notes.baduhai.dev";
|
||||
host = "alexandria";
|
||||
}
|
||||
{
|
||||
name = "open-webui";
|
||||
domain = "ai.baduhai.dev";
|
||||
host = "alexandria";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue