2022-08-31 01:37:47 -07:00
|
|
|
{
|
2022-08-31 05:18:09 -07:00
|
|
|
# Unnecessary at this stage
|
|
|
|
#services.calibre-web = {
|
|
|
|
# enable = true;
|
|
|
|
# listen.port = 8083;
|
|
|
|
# openFirewall = true;
|
|
|
|
# # Bug in the module puts this in quotes in the systemd file
|
|
|
|
# # user = calibre;
|
|
|
|
# # group = calibre;
|
|
|
|
# options = {
|
|
|
|
# calibreLibrary = "/data/books";
|
|
|
|
# enableBookUploading = true;
|
|
|
|
# };
|
|
|
|
#};
|
2022-08-31 01:37:47 -07:00
|
|
|
|
|
|
|
services.calibre-server = {
|
|
|
|
enable = true;
|
|
|
|
libraries = [ "/data/books" ];
|
2022-08-31 05:17:31 -07:00
|
|
|
# Bug in the module puts this in quotes in the systemd file
|
|
|
|
# user = calibre;
|
|
|
|
# group = calibre;
|
2022-08-31 01:37:47 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."books.mossnet.lan" = {
|
|
|
|
enableACME = false;
|
|
|
|
forceSSL = false;
|
|
|
|
|
|
|
|
locations."/" = {
|
|
|
|
extraConfig = ''
|
|
|
|
proxy_pass http://localhost:8083/;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2022-08-31 05:17:31 -07:00
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 8080 ];
|
2022-08-31 01:37:47 -07:00
|
|
|
}
|