Add redlib
This commit is contained in:
parent
9e38d5f65e
commit
451ef9c46c
3 changed files with 4 additions and 7 deletions
|
@ -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 = [];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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}";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -78,7 +78,6 @@
|
|||
};
|
||||
|
||||
server = {
|
||||
port = "8080";
|
||||
method = "GET";
|
||||
base_url = "https://${domain}";
|
||||
bind_address = "unix://${socket}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue