Add redlib

This commit is contained in:
Henry Hiles 2025-07-31 22:29:06 -04:00
commit 451ef9c46c
No known key found for this signature in database
3 changed files with 4 additions and 7 deletions

View file

@ -41,10 +41,7 @@
};
options.services.caddy.authedHosts = lib.mkOption {
type = lib.types.attrsOf (lib.mkOption {
type = lib.types.lines;
default = "";
});
type = lib.types.attrsOf lib.types.lines;
default = [];
};
}

View file

@ -3,9 +3,10 @@
redlib = {
enable = true;
address = "127.0.0.6";
settings.THEME = "nord";
port = 8082;
settings.REDLIB_DEFAULT_THEME = "nord";
};
caddy.authedHosts."auth.federated.nexus" = with config.services.redlib; "reverse_proxy ${address}:${port}";
caddy.authedHosts."redlib.federated.nexus" = with config.services.redlib; "reverse_proxy ${address}:${toString port}";
};
}

View file

@ -78,7 +78,6 @@
};
server = {
port = "8080";
method = "GET";
base_url = "https://${domain}";
bind_address = "unix://${socket}";