feat(heimdall): setup redlib service.
This commit is contained in:
parent
5fa7edbc18
commit
210fb9734f
@ -4,5 +4,6 @@
|
||||
./ntfy-sh.nix
|
||||
./wireguard.nix
|
||||
./secrets.nix
|
||||
./redlib.nix
|
||||
];
|
||||
}
|
||||
|
28
modules/servers/heimdall/redlib.nix
Normal file
28
modules/servers/heimdall/redlib.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{...}: {
|
||||
services.redlib = {
|
||||
enable = true;
|
||||
address = "127.0.0.1";
|
||||
settings = {
|
||||
ROBOTS_DISABLE_INDEXING = "on";
|
||||
THEME = "gruvboxdark";
|
||||
USE_HLS = "on";
|
||||
};
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.redlib.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:8080";
|
||||
}
|
||||
];
|
||||
|
||||
routers.redlib = {
|
||||
rule = "Host(`libreddit.cronyakatsuki.xyz`)";
|
||||
tls = {
|
||||
certResolver = "porkbun";
|
||||
};
|
||||
service = "redlib";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user