![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2022
Device: fbreader
|
![]()
Hi, I am trying to restrict anonymous access to a specific tag or vl, my web search found --restrictions CLI option but it does not seem to be available in recent version of calibre-server. Is there alternative to --restrictions now?
tl;dr I was planning (after reading about --restrictions option) to run 2 instances, one read-only no auth on port 80 restricted to tag:ready (i.e. 'ready' server) and another one with auth but unrestricted on default port 8080 ('staging/work in progress' server). And I was planning to run them both from the same library directory (with one of them being read-only I figured it wound not have write conflicts). If that setup is not possible, would it be possible to have a sync script which would copy only stuff tagged with tag:ready or vl:ready to another library? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,107
Karma: 22669824
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can define restrictions per user in the modern server. There arent restrictions for anonymous users.
|
![]() |
![]() |
![]() |
#3 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2022
Device: fbreader
|
Quote:
Is there by any chance a way to copy library and filter it out by tag in on server side (without calibre UI)? |
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2022
Device: fbreader
|
I guess I can craft something with calibredb list --search filter and calibredb export. or filesystem copy and calibredb list --search followed by calibredb remove. But if there's a better solution, that'd be great to know.
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,107
Karma: 22669824
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cant have both anonymous and non-anonymous access. If you want anonymous access, then simply create a special library and expose it. If you want authenticated access then define restirctions per user.
|
![]() |
![]() |
![]() |
#6 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2022
Device: fbreader
|
That's what I am trying to achieve by having 2 separate libraries and copying from 'staging' library to 'prod' library with filtering by tags, so that only books with special tag are copied. I want to automate it via cron script or something like that so I'd only have to tag a book as 'ready' in my 'staging' (authenticated) instance on port 8080 and it would (eventually) end up in my anonymous and read-only instance on port 80.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre can't access DB from Standard User, but does from Admin User (Win10) | medownunder | Library Management | 10 | 06-01-2021 08:54 PM |
restrict library and view and changes for anonymous users? | badbob001 | Server | 3 | 07-23-2020 05:49 AM |
Restrict user to virtual library? | iamagloworm | Server | 3 | 02-03-2020 09:55 PM |
Restrict PW Internet-Access with Router-Whitelist | reader13498 | Kindle Developer's Corner | 1 | 04-14-2015 09:47 AM |
iLiad Restrict access to this section? | TadW | iRex Developer's Corner | 8 | 07-27-2006 05:43 AM |