calibre: disable calibre-web and redirect domain to calibre-server

Calibre-ewb, while pretty, does not come with a book reader, and so
requires to download the damn book.

That also means it does not sync my status between devices, and defeats
majority of the purpose of running the server <facepalm>. So, remove it
entirely and switch to built-in calibre-server instead.
This commit is contained in:
Payas Relekar 2023-06-10 16:07:35 +05:30
parent 5d4136c386
commit 943acadeeb

View file

@ -1,35 +1,18 @@
{ ... }:
let payas = "payas";
in
{
services = {
calibre-server = {
enable = true;
user = payas;
user = "payas";
libraries = [ "/home/payas/org/books/calibre/" ];
};
calibre-web = {
enable = true;
user = payas;
openFirewall = false;
listen = {
port = 8083;
ip = "0.0.0.0";
};
options = {
enableBookUploading = true;
enableBookConversion = true;
calibreLibrary = "/home/payas/org/books/calibre";
};
};
nginx.virtualHosts = {
"books.bhankas.org" = {
addSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8083";
proxyPass = "http://127.0.0.1:8080";
proxyWebsockets = false;
extraConfig =
"proxy_set_header Host $host;"