tweaks to audiobookshelf
This commit is contained in:
parent
0f3c4b3e1b
commit
971321f289
|
@ -1,16 +1,20 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
port = "8999";
|
||||||
|
|
||||||
{
|
{
|
||||||
services.audiobookshelf = {
|
services.audiobookshelf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
port = "8999";
|
port = port;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts = {
|
services.caddy.virtualHosts = {
|
||||||
"abs.cochrun.xyz".extraConfig = ''
|
"abs.cochrun.xyz".extraConfig = ''
|
||||||
reverse_proxy localhost:${services.audiobookshelf.port}
|
reverse_proxy localhost:${port}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue