|  03-27-2015, 06:43 AM | #1 | 
| Junior Member  Posts: 3 Karma: 10 Join Date: Jul 2013 Device: none | 
				
				calibre-server - Question about --restriction parameter
			 
			
			Dear all, I need to launch only calibre-server instance on my server and I need to define one or more virtual libs. With my understanding after a review of the source code, it seems it is impossible to define more than one virtual lib with the --restriction parameter. Do you confirm this limitation ? Thank you in advance for your answer. Regards, | 
|   |   | 
|  03-27-2015, 07:51 AM | #2 | 
| Addict            Posts: 250 Karma: 20386 Join Date: Sep 2010 Location: France Device: Bookeen Diva, Kobo Clara BW | 
			
			I think so, technically.  However, you can run as many calibre-server on as many ports as you want. For example, my calibre-server.sh (run on startup) looks like: Code: #!/bin/bash echo "Launch: Fanfictions (8081)" calibre-server --port 8081 --restriction FanFiction --daemonize sleep 5 echo "Launch: Novels (8082)" calibre-server --port 8082 --restriction Novels --daemonize sleep 5 echo "Launch: EPU (8083)" calibre-server --port 8083 --restriction "EPU Redux" --daemonize sleep 5 echo "Launch: Full (8080)" calibre-server --port 8080 --daemonize | 
|   |   | 
|  03-27-2015, 08:15 AM | #3 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | 
			
			If you want to serve more than one VL per instance, define a "super VL" that includes the VLs you want. The easiest way to do this is to create a saved search per VL then reference each appropriate saved search in the "super-VL".
		 | 
|   |   | 
|  03-27-2015, 11:13 AM | #4 | 
| Junior Member  Posts: 3 Karma: 10 Join Date: Jul 2013 Device: none | 
			
			Thank you for your answers and your alternative! @aleyx With your solution, you have to reconnect with user and psw at each time I switch to another virtual lib. Is not it? I yes, in my case it will not be very convinient. @chaley I will try this solution that could fit in my needs. You help me a lot. Cheers | 
|   |   | 
|  03-27-2015, 12:48 PM | #5 | |
| Addict            Posts: 250 Karma: 20386 Join Date: Sep 2010 Location: France Device: Bookeen Diva, Kobo Clara BW | Quote: 
 Also, if you have to switch from one to the other, you can just keep them open in separate tabs or separate windows. If your libraries must be secured, entering credentials is a small inconvenience. If they don't need to be secured, you can just not secure them. There's no kids at home, and I don't allow access from the Internet at large, so I don't bother with authentication. N. | |
|   |   | 
|  03-27-2015, 01:00 PM | #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) | 
			
			Alternatively, you can proxy calibre-server through apache or other choice of web servers, and tune the password protection through the more fully-fledged webserver. http://manual.calibre-ebook.com/serv...-reverse-proxy | 
|   |   | 
|  | 
| Tags | 
| calibre-server, content server, virtual library | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| question about Audible region restriction | NetSpiker | General Discussions | 1 | 02-07-2015 06:32 PM | 
| Question about the Calibre Content Server? | Dullahir | Calibre | 2 | 04-25-2013 02:30 AM | 
| calibre server question | Chauncey | Calibre | 5 | 11-03-2011 02:57 PM | 
| calibre-server --restriction | ilovejedd | Calibre | 9 | 09-21-2011 08:03 PM | 
| Question for 950 owner(s) - re: Calibre server | DigitalAutoPilot | Sony Reader | 3 | 11-02-2010 11:44 AM |