Marlon's Wiki

it's better when it's simpler

User Tools

Site Tools


start:software:calibre

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
start:software:calibre [2024/09/21 14:09] marlonivostart:software:calibre [2024/12/14 16:33] (current) – [Creating the Server with Nginx] marlonivo
Line 17: Line 17:
 </code> </code>
  
-Upload your local <color #ff7f27>library</color> (using rsync) to /opt/calibre/ and save the command somewhere.+Upload your local library (using rsync) to ''%%/opt/calibre/%%'' and save the command somewhere. 
  
 <code> <code>
-rsync -avuP --delete-after ~/<color #ff7f27>library</color> root@example.org:/opt/calibre/+rsync -avuP --delete-after ~/local_library/ root@example.org:/opt/calibre/server_library/
 </code> </code>
  
Line 31: Line 31:
 ==== Creating a service ===== ==== Creating a service =====
  
-Create a new file /etc/systemd/system/calibre-server.service and add the following:+Create a new file ''%%/etc/systemd/system/calibre-server.service%%'' and add the following:
  
 <code> <code>
Line 42: Line 42:
 User=root User=root
 Group=root Group=root
-ExecStart=/usr/bin/calibre-server --enable-auth --enable-local-write /opt/calibre/<color #ff7f27>library</color> --listen-on 127.0.0.1+ExecStart=/usr/bin/calibre-server --enable-auth --enable-local-write /opt/calibre/library --listen-on 127.0.0.1
  
 [Install] [Install]
Line 61: Line 61:
 ==== Creating the Server with Nginx ==== ==== Creating the Server with Nginx ====
  
-Create a new file /etc/nginx/sites-available/<color #ff7f27>library</color> and enter the following:+Create a new file /etc/nginx/sites-available/library and enter the following:
  
 <code> <code>
Line 67: Line 67:
     listen 80;     listen 80;
     client_max_body_size 64M; # to upload large books     client_max_body_size 64M; # to upload large books
-    server_name <color #ff7f27>library</color>.example.org ;+    server_name library.example.org ;
  
     location / {     location / {
Line 77: Line 77:
 Then symlink to sites-enabled: Then symlink to sites-enabled:
 <code> <code>
-ln -s /etc/nginx/sites-available/<color #ff7f27>library</color> /etc/nginx/sites-enabled+ln -s /etc/nginx/sites-available/library /etc/nginx/sites-enabled
 </code> </code>
  
Line 89: Line 89:
  
 | **Type**       | **Name** | **Points to**        | **TTL** | | **Type**       | **Name** | **Points to**        | **TTL** |
-| CNAME   <color #ff7f27>library</color>  | example.xyz | 1m  |+| CNAME   | library  | example.xyz | 1m  |
  
 ------ ------
  
-Now just go to <color #ff7f27>library</color>.example.org, the server will request the username and password you've set above, then you are FINISHED!+Now just go to library.example.org, the server will request the username and password you've set above.  
 + 
 +ENJOY! 
 + 
 +==== You might wanna See ==== 
 + 
 +[[start:software:calibre:revert|Reverting]] Calibre Installation
  
  
start/software/calibre.1726927790.txt.gz · Last modified: 2024/09/21 14:09 by marlonivo

Donate Marlon Ivo's Webpage