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:
parent
5d4136c386
commit
943acadeeb
1 changed files with 2 additions and 19 deletions
|
@ -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;"
|
||||
|
|
Reference in a new issue