fix(calibre-web): fix & improve config
This commit is contained in:
parent
a871a42a69
commit
6efc9cea3f
|
@ -4,7 +4,10 @@ let port = 8088;
|
||||||
in {
|
in {
|
||||||
services.calibre-web = {
|
services.calibre-web = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
listen.ip = "::1";
|
||||||
listen.port = port;
|
listen.port = port;
|
||||||
|
options.enableBookUploading = true;
|
||||||
|
options.enableBookConversion = true;
|
||||||
options.calibreLibrary = "/media/Books";
|
options.calibreLibrary = "/media/Books";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12,7 +15,12 @@ in {
|
||||||
virtualHosts."books.felschr.com" = {
|
virtualHosts."books.felschr.com" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".proxyPass = "http://localhost:${toString port}";
|
locations."/" = {
|
||||||
|
proxyPass = "http://[::1]:${toString port}";
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 100M;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue