summaryrefslogtreecommitdiff
path: root/calibre.html
diff options
context:
space:
mode:
Diffstat (limited to 'calibre.html')
-rw-r--r--calibre.html64
1 files changed, 25 insertions, 39 deletions
diff --git a/calibre.html b/calibre.html
index 2301ded..2251917 100644
--- a/calibre.html
+++ b/calibre.html
@@ -12,38 +12,35 @@
<header><h1>Setting up a Calibre library server</h1></header>
<nav></nav>
<main>
+ <img src="pix/calibre.png" alt="Calibre logo" class=titleimg>
<p>
- The Calibre library server is a great way to store your e-books.
+ The Calibre library server is a great way to store your eBooks.
It allows you to:
+ </p>
+ <ul>
<li>Share your books with others.</li>
<li>Easily transfer your books between devices and access them from anywhere.</li>
- </p>
+ </ul>
<h2>Installation</h2>
- <p>
- Install the Calibre package.
- </p>
+ <p>Install the Calibre package.
+ You might also want rsync to upload books.</p>
- <pre><code>apt install calibre
+ <pre><code>apt install -y calibre rsync
mkdir /opt/calibre</code></pre>
<p>
- If you have an already existing library on your computer, you can use <a href="rsync.html">rsync</a> to upload it.
- </p>
-
- <p>
- On client:
- </p>
-
- <pre><code>rsync -r <strong>~/Documents/your_library</strong> root@<strong>example.org</strong>:/opt/calibre/</code></pre>
+ Either upload your existing library using <code>rsync</code>. For example to <code>/opt/calibre/</code>.
+ <pre><code>cd ~/Documents
+rsync -avuP <strong>your-library-dir</strong> root@<strong>example.org</strong>:/opt/calibre/</code></pre>
<p>
- Or create a library and add a book to it.
+ Or create a library and add a book to it:
</p>
<pre><code>cd /opt/calibre
-calibredb add book.epub --with-library your_library</code></pre>
+calibredb add <strong>book.epub</strong> --with-library <strong>your-library</strong></code></pre>
<aside>
<p>
@@ -52,7 +49,7 @@ calibredb add book.epub --with-library your_library</code></pre>
</aside>
<p>
- Add a new user.
+ Add a new user to protect your server:
</p>
<pre><code>calibre-server --manage-users</code></pre>
@@ -71,7 +68,7 @@ After=network.target
Type=simple
User=root
Group=root
-ExecStart=/usr/bin/calibre-server --enable-auth --enable-local-write /opt/calibre/your_library
+ExecStart=/usr/bin/calibre-server --enable-auth --enable-local-write /opt/calibre/your_library --listen-on 127.0.0.1
[Install]
WantedBy=multi-user.target
@@ -100,45 +97,34 @@ systemctl start calibre-server</code></pre>
</p>
<pre><code>server {
- listen 80;
- server_name calibre.example.org;
+ listen 80;
+ client_max_body_size 64M; # to upload large books
+ server_name <strong>calibre.example.org</strong> ;
- location /calibre {
+ location / {
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;
}
}</code></pre>
- <p>
- Issue a Let's Encrypt certificate. <a href="certbot.html">Detailed instructions and additional information</a>.
- </p>
+ <p>Issue a Let's Encrypt certificate. <a href="certbot.html">Detailed instructions and additional information</a>.</p>
<pre><code>certbot --nginx</code></pre>
- <p>
- Now just go to calibre.example.org. The server will request an username and password.
- </p>
+ <p>Now just go to <strong>calibre.example.org</strong>. The server will request an username and a password.</p>
<a href="pix/calibre-1.png">
<img src="pix/calibre/calibre-1.png" alt="calibre">
</a>
- <p>
- After login you will see something like this.
- </p>
+ <p>After login you will see something like this.</p>
<a href="pix/calibre-1.png">
<img src="pix/calibre/calibre-2.png" alt="calibre">
</a>
- <hr>
-
- <p>
- By rflx -- <a href="https://rflx.xyz">website</a> -- XMR: <code class=crypto>48T5XpHTXAZ5Nn8YCypA4aWn1ffQLHJkFGDArXQB6cmrP6cqLY72cu7CR2iq2MmL5Ndu3d47e5MKjGpL4prYgdrTCFAHD9c</code>
- </p>
+ <h2>Contribution</h2>
+ <li>Author: rflx &ndash; <a href="https://rflx.xyz">website</a> -- XMR: <code class=crypto>48T5XpHTXAZ5Nn8YCypA4aWn1ffQLHJkFGDArXQB6cmrP6cqLY72cu7CR2iq2MmL5Ndu3d47e5MKjGpL4prYgdrTCFAHD9c</code>
+ </li>
</main>
<footer><a href="https://landchad.net">LandChad.net</a></br>Because Everyone should be an Internet LandChad.</br><li><a href="index.html"><img src="pix/chad.gif" alt="chad"></a></li><li><a href="rss.xml"><img src="pix/rss.svg" alt="RSS"></a></li><li><a href="pix/btc.png"><img src="pix/btc.svg" alt="BTC"></a></li><li><a href="pix/xmr.png"><img src="pix/xmr.svg" alt="XMR"></a></li><li><a href="https://github.com/lukesmithxyz/landchad"><img src="pix/git.svg" alt="Github"></a></footer>
</body>