|
|
#1 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2011
Device: nook
|
calibre-server, expose all libraries
I maintain multiple calibre libraries (fiction, non-fiction, computer science, etc.). Is there a way to expose these libraries as a subdirectory of the URL?
e.g., 127.0.0.1:8080/fiction 127.0.0.1:8080/non-fiction etc. If not, is there any desire to provide for this type of functionality? I'm happy to contribute as a developer. I would need to get details of the file system structure of the libraries. |
|
|
|
|
|
#2 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,269
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
a) Use a virtual Libraries instead of multiple b) Start multiple content SERVERS, each with their own port eg "C:\Program Files\Calibre2\calibre-server.exe" --port 8083 --with-library C:\Users\<me>\MainLib "C:\Program Files\Calibre2\calibre-server.exe" --port 8082 --with-library C:\Users\<me>\Fiction |
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,020
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@asok - I 'made' a PTFB script to selectively start multiple servers on different ports took about 5 minutes to 'make'.
|
|
|
|
|
|
#4 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2011
Device: nook
|
thanks, guys. I get the general gist of how you made it happen. cheers!
|
|
|
|
|
|
#5 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You can use a single port, or no port, to expose all your libraries by using a reverse proxy with different paths.
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I use the following systemd service on linux:
Code:
[eschwartz@arch ~]$ cat ~/.config/systemd/user/calibre-server@.service
[Unit]
Description=Main calibre server
After=network.target
[Service]
EnvironmentFile=/%h/.config/calibre/servers/%i.conf
ExecStart=/usr/bin/calibre-server \
--port="${port}" \
--with-library "${path}" \
--restriction "${restriction}" \
--user "${user}" \
--pass "${pass}"
[Install]
WantedBy=default.target
Code:
[eschwartz@arch ~]$ cat ~/.config/calibre/servers/template.conf path="/home/eschwartz/Calibre_Libraries/My_Library_Name" port="8080" restriction="some_restriction" user="username" pass="password" The Content Server is currently in the midst of a major rewrite, I believe one of the features will be starting multiple libraries in the same invocation but not sure of the exact details. Server read/write mode and multiple libraries has long been suggested as a feature of the eventual rewrite, among other things. |
|
|
|
|
|
#7 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 726
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Use COPS: https://www.mobileread.com/forums/sho...d.php?t=170903
Do not be fooled by the version number, it's at version 1 (almost) http://blog.slucas.fr/en/oss/calibre-opds-php-server
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BicBucStriim 1.1 released, HTML and OPDS server for Calibre libraries | textmulch | Related Tools | 28 | 01-07-2015 10:00 PM |
| Multiple libraries on Calibre server? | omf | Library Management | 4 | 02-15-2014 06:59 PM |
| BicBucStriim 1.0, HTML and OPDS server for Calibre libraries | textmulch | Related Tools | 7 | 04-20-2013 11:46 PM |
| BicBucStriim 0.9, HTML and OPDS server for Calibre libraries | textmulch | Related Tools | 13 | 11-16-2012 06:10 AM |
| BicBucStriim, HTML server for Calibre libraries | textmulch | Related Tools | 3 | 06-01-2012 12:51 PM |