+ The Calibre library server is a great way to store your e-books. + It allows you to: +
From ce5ba1a4a1387808c0e12041a630f85af774fb81 Mon Sep 17 00:00:00 2001
From: rflx
+ The Calibre library server is a great way to store your e-books.
+ It allows you to:
+ Setting up a Calibre library server
+ Install the Calibre package. +
+ +apt update && apt install calibre
+mkdir /opt/calibre
+
+
+ Either upload your existing library using scp. For example to /opt/calibre/
+
+ On client: +
+ +scp -r ~/Documents/your_library root@example.org:/opt/calibre/
+
+ + Or create a library and add a book to it. +
+ +cd /opt/calibre
+calibredb add book.epub --with-library your_library
+
+
+
+ + Add a new user. +
+ +calibre-server --manage-users
+
+
+ Create a new file /etc/systemd/system/calibre-server.service and add the following:
+
[Unit]
+Description=Calibre library server
+After=network.target
+
+[Service]
+Type=simple
+User=root
+Group=root
+ExecStart=/usr/bin/calibre-server --enable-auth --enable-local-write /opt/calibre/your_library
+
+[Install]
+WantedBy=multi-user.target
+
+
+
+ Issue systemctl daemon-reload to apply the changes.
+
+ Enable and start the service. +
+ +systemctl enable calibre-server
+systemctl start calibre-server
+
+
+ Create a new file /etc/nginx/sites-available/calibre and enter the following:
+
server {
+ listen 80;
+ server_name calibre.example.org;
+
+ location /calibre {
+ proxy_pass http://127.0.0.1:8080;
+ proxy_set_header Host $http_host;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Scheme $scheme;
+ proxy_set_header X-Script-Name /calibre;
+ }
+}
+
+ + Issue a Let's Encrypt certificate. Detailed instructions and additional information. +
+ +certbot --nginx
+
+ + Now just go to calibre.example.org. The server will request a username and password. +
+ + +
+
+
+ + After login you will see something like this. +
+ + +
+
+
+ + By rflx -- website -- XMR: rflx.xyz +
+ + + + + diff --git a/index.html b/index.html index 9fd0c00..bff1ae9 100644 --- a/index.html +++ b/index.html @@ -64,6 +64,7 @@certbot --nginx
- Now just go to calibre.example.org. The server will request a username and password. + Now just go to calibre.example.org. The server will request an username and password.
-- cgit v1.2.3 From 0d8a7cc8c787fe15bdab6266f5f9fb50edae27a0 Mon Sep 17 00:00:00 2001 From: rflx
Issue systemctl daemon-reload to apply the changes.
@@ -132,7 +137,7 @@ systemctl start calibre-server
- By rflx -- website -- XMR: rflx.xyz + By rflx -- website -- XMR: 48T5XpHTXAZ5Nn8YCypA4aWn1ffQLHJkFGDArXQB6cmrP6cqLY72cu7CR2iq2MmL5Ndu3d47e5MKjGpL4prYgdrTCFAHD9c
-- cgit v1.2.3