modified setup.nix so that the proxy functions take cfg
This commit is contained in:
@@ -6,15 +6,16 @@ in
|
||||
{
|
||||
options.my.servers.audiobookshelf = setup.mkOptions "audiobookshelf" "audiobooks" 5687;
|
||||
config = {
|
||||
my.servers.audiobookshelf.ip = "127.0.0.3";
|
||||
services = {
|
||||
audiobookshelf = lib.mkIf cfg.enable {
|
||||
inherit (cfg) port;
|
||||
enable = true;
|
||||
host = cfg.ip;
|
||||
group = "piracy";
|
||||
openFirewall = true;
|
||||
};
|
||||
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
|
||||
setup.proxy {
|
||||
setup.proxy cfg {
|
||||
"/" = {
|
||||
proxyPass = cfg.local;
|
||||
extraConfig = ''
|
||||
|
||||
Reference in New Issue
Block a user