rpi4: fix redlib, rename from libreddit
This commit is contained in:
parent
5782db8360
commit
28cad3a3fb
@ -194,7 +194,12 @@
|
||||
"deemix.protogen.io" = mkAuthProxy 6595;
|
||||
|
||||
# libreddit auth 8087
|
||||
"libreddit.protogen.io" = mkAuthProxy 8087;
|
||||
"libreddit.protogen.io" = {
|
||||
useACMEHost = "protogen.io";
|
||||
forceSSL = true;
|
||||
locations."/".return = "302 https://redlib.protogen.io$request_uri";
|
||||
};
|
||||
"redlib.protogen.io" = mkAuthProxy 8087;
|
||||
"rss.protogen.io" = mkReverseProxy 8082;
|
||||
"blahaj.protogen.io" = mkReverseProxy 8086;
|
||||
|
||||
@ -300,7 +305,7 @@
|
||||
# needed for mDNS in Home Assistant
|
||||
networking.firewall.allowedUDPPorts = [ 5353 ];
|
||||
|
||||
systemd.services.libreddit.environment = {
|
||||
systemd.services.redlib.environment = {
|
||||
REDLIB_DEFAULT_SUBSCRIPTIONS = lib.pipe ./reddit-subscriptions.txt [
|
||||
builtins.readFile
|
||||
(lib.splitString "\n")
|
||||
@ -308,7 +313,7 @@
|
||||
(lib.concatStringsSep "+")
|
||||
];
|
||||
};
|
||||
services.libreddit = {
|
||||
services.redlib = {
|
||||
enable = true;
|
||||
port = 8087;
|
||||
package = pkgs.redlib;
|
||||
|
Loading…
x
Reference in New Issue
Block a user