Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 02-20-2022, 10:36 AM   #1
pk1966
Member
pk1966 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2019
Device: Kindle
Post Allowing Anonymous local users to update library via http

I run my calibre web server behind a reverse proxy, with authentication done on the proxy so don't want to use calibre's username/password feature.

I am also running readarr on the same PC and when it tries to add books, it fails with
Code:
HTTP Error - Res: [POST] http://192.168.0.15:13005/cdb/add-book/997033116/1/$dummy.epub/Calibre_Library: 403.Forbidden
Anonymous users are not allowed to make changes
If I enable user name and password, it works OK.

I have tried enabling the options for allowing un-authenticated connections to make changes (see attached screenshot) but it makes no difference.

I have seen the "--enable-local-write" option, but not sure how to specify this as calibre starts the web server automatically, although I had assumed that the un-authenticated parameters would do this for me.

Anyone advise what I'm doing wrong?
Attached Thumbnails
Click image for larger version

Name:	calibre settings.jpg
Views:	168
Size:	12.5 KB
ID:	192402  
pk1966 is offline   Reply With Quote
Old 02-20-2022, 10:59 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
According to that the IP address you need to allow is 192.168.0.15
kovidgoyal is offline   Reply With Quote
Old 02-20-2022, 11:03 AM   #3
pk1966
Member
pk1966 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2019
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
According to that the IP address you need to allow is 192.168.0.15
I think I have, haven't I? (see screen shot on original post)

Thanks
PK
pk1966 is offline   Reply With Quote
Old 02-20-2022, 09:45 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Look at the server logs it will tell you the actual ip address to use, since you are going through a proxy. And I suggest you get it working without a proxy first
kovidgoyal is offline   Reply With Quote
Old 02-22-2022, 03:23 PM   #5
pk1966
Member
pk1966 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2019
Device: Kindle
The logs show that it is 192.168.0.15 and the API access is not going via the proxy (only external web access is routed that way).

If I tick the box to require a user name and password, the API calls work fine.

As soon as I untick the box, the API calls stops working.
pk1966 is offline   Reply With Quote
Old 02-22-2022, 03:33 PM   #6
pk1966
Member
pk1966 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2019
Device: Kindle
So I have resolved it by specifying the IP address to listen on, rather than allowing it to auto-detect the interface.
pk1966 is offline   Reply With Quote
Reply

Tags
calibre-server


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Allowing access to WIFI but only to local network, not the web Kindleschokolade Kindle Developer's Corner 5 01-11-2022 08:20 AM
restrict library and view and changes for anonymous users? badbob001 Server 3 07-23-2020 05:49 AM
Help needed for iPad allowing users to write? Karthiksugumar Apple Devices 5 07-17-2017 03:31 AM
Overdrive Library allowing online signup? portablejim General Discussions 25 09-21-2016 10:29 PM


All times are GMT -4. The time now is 11:14 AM.


MobileRead.com is a privately owned, operated and funded community.