Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 05-19-2017, 01:56 PM   #1531
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Is the "Set your email" function working?

I put in my name@kindle.com but it won't stick/save. I am using V1.0.0RC3

Am I correct in assuming this will send a .mobi file using the send-to-Kindle email address?

[Edit]

My bad...using the new Brave browser and the 'Shields' were all turned on. Once I turned them off, was able to get the email address to save.

But, I don't see any way to actually send the book when I am in the details screen. Is there some other setting I need to turn on?

Last edited by MontyJ; 05-19-2017 at 02:07 PM.
MontyJ is offline   Reply With Quote
Old 05-19-2017, 03:33 PM   #1532
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
To make COPS able to send e-mails you have to edit or insert some lines in config_local.php:
Code:
    /*
     * Enable and configure Send To Kindle (or Email) feature.
     *
     * Don't forget to authorize the sender email you configured in your Kindle's  Approved Personal Document E-mail List.
     *
     * If you want to use a simple smtp server (provided by your ISP for example), you can configure it like that :
     * $config['cops_mail_configuration'] = array( "smtp.host"     => "smtp.free.fr",
     *                                           "smtp.username" => "",
     *                                           "smtp.password" => "",
     *                                           "smtp.secure"   => "",
     *                                           "address.from"  => "cops@slucas.fr"
     *                                           );
     *
     * For Gmail (ssl is mandatory) :
     * $config['cops_mail_configuration'] = array( "smtp.host"     => "smtp.gmail.com",
     *                                           "smtp.username" => "YOUR GMAIL ADRESS",
     *                                           "smtp.password" => "YOUR GMAIL PASSWORD",
     *                                           "smtp.secure"   => "ssl",
     *                                           "address.from"  => "cops@slucas.fr"
     *                                           );
     */
    $config['cops_mail_configuration'] = NULL;
So change NULL to one of the examples filled in with your info.

Success!!
mariosipad is offline   Reply With Quote
Advert
Old 05-19-2017, 11:56 PM   #1533
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
To make COPS able to send e-mails you have to edit or insert some lines in config_local.php:
Code:
    /*
     * Enable and configure Send To Kindle (or Email) feature.
     *
     * Don't forget to authorize the sender email you configured in your Kindle's  Approved Personal Document E-mail List.
     *
     * If you want to use a simple smtp server (provided by your ISP for example), you can configure it like that :
     * $config['cops_mail_configuration'] = array( "smtp.host"     => "smtp.free.fr",
     *                                           "smtp.username" => "",
     *                                           "smtp.password" => "",
     *                                           "smtp.secure"   => "",
     *                                           "address.from"  => "cops@slucas.fr"
     *                                           );
     *
     * For Gmail (ssl is mandatory) :
     * $config['cops_mail_configuration'] = array( "smtp.host"     => "smtp.gmail.com",
     *                                           "smtp.username" => "YOUR GMAIL ADRESS",
     *                                           "smtp.password" => "YOUR GMAIL PASSWORD",
     *                                           "smtp.secure"   => "ssl",
     *                                           "address.from"  => "cops@slucas.fr"
     *                                           );
     */
    $config['cops_mail_configuration'] = NULL;
So change NULL to one of the examples filled in with your info.

Success!!
Yep...success!!

I think it's called RTFM, right?, LoL.

Thanks for pointing that out; all is good, but only after a few other problems were taken care of.

FYI, and others with QNAP, there is a basic Virtual Host setup already in Control Panel > Web Server. At least it is in the latest QTS V4.3.3. It may have been there in previous versions, but I never saw it.

Anyway, it is a truly basic setup, with minimal options. But that gave me an excellent way to start a more complete Virtual Host setup. After a lot of trial-and-error, I made it work using .htaccess/.htpasswd the way I wanted.

All is good. It's Miller (Actually Corona) time!
MontyJ is offline   Reply With Quote
Old 05-20-2017, 09:41 AM   #1534
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Lightbulb

Quote:
Originally Posted by mariosipad View Post
To make COPS able to send e-mails you have to edit or insert some lines in config_local.php:
Code:
    /*
     * Enable and configure Send To Kindle (or Email) feature.
     *
     * Don't forget to authorize the sender email you configured in your Kindle's  Approved Personal Document E-mail List.
     *
     * If you want to use a simple smtp server (provided by your ISP for example), you can configure it like that :
     * $config['cops_mail_configuration'] = array( "smtp.host"     => "smtp.free.fr",
     *                                           "smtp.username" => "",
     *                                           "smtp.password" => "",
     *                                           "smtp.secure"   => "",
     *                                           "address.from"  => "cops@slucas.fr"
     *                                           );
     *
     * For Gmail (ssl is mandatory) :
     * $config['cops_mail_configuration'] = array( "smtp.host"     => "smtp.gmail.com",
     *                                           "smtp.username" => "YOUR GMAIL ADRESS",
     *                                           "smtp.password" => "YOUR GMAIL PASSWORD",
     *                                           "smtp.secure"   => "ssl",
     *                                           "address.from"  => "cops@slucas.fr"
     *                                           );
     */
    $config['cops_mail_configuration'] = NULL;
So change NULL to one of the examples filled in with your info.

Success!!
Well, my celebration may have been a little premature!

If I understand the settings correctly, COPS knows nothing about who the user is. It has no login of its own, which I have already put in a feature request for!

Unless I didn't RTFM right, it has a single configuration setup and any user that gets into COPS can change any available settings, which the next user will see.

So, the Send To Kindle feature will work, but every time a different user logs in, the previous user changes will be in effect. While that new user can change things to his settings, and it does indeed work, it could really mess up the works if the first user is still connected and trying to send a book to their account.

Why allow multiple connections from different users if each user cannot have their own unique setup?

Like I said, perhaps I missed something in the available setting configuration, but I don't see a way for each connected user to have their own setup...big plug for that feature and detailed logging!!
MontyJ is offline   Reply With Quote
Old 05-20-2017, 03:41 PM   #1535
Calibius
Junior Member
Calibius began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2017
Device: Kindle paperwhite 3
Quote:
Originally Posted by MontyJ View Post
Well, my celebration may have been a little premature!

If I understand the settings correctly, COPS knows nothing about who the user is. It has no login of its own, which I have already put in a feature request for!

Unless I didn't RTFM right, it has a single configuration setup and any user that gets into COPS can change any available settings, which the next user will see.

So, the Send To Kindle feature will work, but every time a different user logs in, the previous user changes will be in effect. While that new user can change things to his settings, and it does indeed work, it could really mess up the works if the first user is still connected and trying to send a book to their account.

Why allow multiple connections from different users if each user cannot have their own unique setup?

Like I said, perhaps I missed something in the available setting configuration, but I don't see a way for each connected user to have their own setup...big plug for that feature and detailed logging!!
I don't have it set up, but I'm fairly certain you can have your own config file per user by having multiple "config_local.username.php" (and a master local config config_local.php). I believe this is using basic http auth. I'm not sure if this solves your issues, but I hope it helps. https://github.com/seblucas/cops/wiki/User-based-config

Last edited by Calibius; 05-20-2017 at 03:45 PM. Reason: added link
Calibius is offline   Reply With Quote
Advert
Old 05-20-2017, 03:54 PM   #1536
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by Calibius View Post
I don't have it set up, but I'm fairly certain you can have your own config file per user by having multiple "config_local.username.php" (and a master local config config_local.php). I believe this is using basic http auth. I'm not sure if this solves your issues, but I hope it helps. https://github.com/seblucas/cops/wiki/User-based-config
Calibius,

Alright!! Mucho thanks for that link and idea!

I will plug ahead and see if I can get it to work. Hopefully my nas box has enough oomphf to accommodate about 40 of these user configs
MontyJ is offline   Reply With Quote
Old 05-20-2017, 08:28 PM   #1537
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Is there something really new/different in the V1.1.1 version?

I have been banging on it for 4 hours trying to get it to work in the same environment where V1.00RC3 is working!

Per my last post, trying to get the 'per user' login thing going, here is what I have done:

- I couldn't get the current working 1.0.0RC3 to work with the suggested setup for multiple user logins and setup.

- Made a new folder in my Web folder and called it cops111. Copied over the contents of the new calibre-master.zip, v1.1.1 in to the new folder.

- Set up very basic vhost in the QTS control panel for that new folder and port 8164.

- When I enter 192.168.x.xxx:8164/checkconfig.php, I get the COPS Configuration Check screen. All items say "OK" except the last 3, but they seem to be just reminders of things that are already installed and work under the 1.0.0.RC3 version.

But when I try to pull up the COPS program itself, it simply does not seem to be there. Here are my Apache vhost settings:
Code:
NameVirtualHost *:8162
NameVirtualHost *:8163
NameVirtualHost *:8164

Listen 8162
Listen 8163
Listen 8164

<VirtualHost _default_:80>
	DocumentRoot "/share/Web"
</VirtualHost>
<VirtualHost *:8162>
<Directory "/share/Web/COPS">
	Options FollowSymLinks MultiViews
	AllowOverride All
	Require all granted
</Directory>
	ServerName Cops
	DocumentRoot "/share/Web/COPS"
</VirtualHost>
<VirtualHost *:8163>
<Directory "/share/Web/CalibreWeb">
	Options FollowSymLinks MultiViews
	AllowOverride All
	Require all granted
</Directory>
	ServerName Calibre-Web
	DocumentRoot "/share/Web/CalibreWeb"
</VirtualHost>
<VirtualHost *:8164>
<Directory "/share/Web/cops111">
	Options FollowSymLinks MultiViews
	AllowOverride All
	Require all granted
</Directory>
	ServerName COPS111
	DocumentRoot "/share/Web/cops111"
</VirtualHost>
The first two work normally, but the new cops111 is simply not showing up. I have done the apache restart thing after every change, probably unnecessarily.

I am stumped. Any ideas out there?
MontyJ is offline   Reply With Quote
Old 05-20-2017, 10:19 PM   #1538
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by MontyJ View Post
Is there something really new/different in the V1.1.1 version?

I have been banging on it for 4 hours trying to get it to work in the same environment where V1.00RC3 is working!

Per my last post, trying to get the 'per user' login thing going, here is what I have done:

- I couldn't get the current working 1.0.0RC3 to work with the suggested setup for multiple user logins and setup.

- Made a new folder in my Web folder and called it cops111. Copied over the contents of the new calibre-master.zip, v1.1.1 in to the new folder.

- Set up very basic vhost in the QTS control panel for that new folder and port 8164.

- When I enter 192.168.x.xxx:8164/checkconfig.php, I get the COPS Configuration Check screen. All items say "OK" except the last 3, but they seem to be just reminders of things that are already installed and work under the 1.0.0.RC3 version.

But when I try to pull up the COPS program itself, it simply does not seem to be there. Here are my Apache vhost settings:
Code:
NameVirtualHost *:8162
NameVirtualHost *:8163
NameVirtualHost *:8164

Listen 8162
Listen 8163
Listen 8164

<VirtualHost _default_:80>
	DocumentRoot "/share/Web"
</VirtualHost>
<VirtualHost *:8162>
<Directory "/share/Web/COPS">
	Options FollowSymLinks MultiViews
	AllowOverride All
	Require all granted
</Directory>
	ServerName Cops
	DocumentRoot "/share/Web/COPS"
</VirtualHost>
<VirtualHost *:8163>
<Directory "/share/Web/CalibreWeb">
	Options FollowSymLinks MultiViews
	AllowOverride All
	Require all granted
</Directory>
	ServerName Calibre-Web
	DocumentRoot "/share/Web/CalibreWeb"
</VirtualHost>
<VirtualHost *:8164>
<Directory "/share/Web/cops111">
	Options FollowSymLinks MultiViews
	AllowOverride All
	Require all granted
</Directory>
	ServerName COPS111
	DocumentRoot "/share/Web/cops111"
</VirtualHost>
The first two work normally, but the new cops111 is simply not showing up. I have done the apache restart thing after every change, probably unnecessarily.

I am stumped. Any ideas out there?
Well, one problem solved! The first V1.1.1 zip I had must have been bad, dunno. Went to the proper github location and downloaded that zip and now I can at least start it up!

See new post for the login issue.

Monty
MontyJ is offline   Reply With Quote
Old 05-20-2017, 10:30 PM   #1539
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Question

I now have a basic install of V1.1.1 installed and working.

But I really need to find out if this version handles setting on a per user basis; all wiki's say it will, but this one has a specific mention of fixes to that in the changelog.

So here is my entry for basic cops authentication of a single user:

Code:
$config['cops_basic_authentication'] = array('username' => 'monty', 'password' => 'mypassword');
When I open cops locally, up pops the Authentication login form. I enter my username and password, but it just keeps recycling, refreshing to a blank form.

I have changed the single quote marks to double-quote marks, but it doesn't change anything. So I'm guessing my format for the array is wrong. Here is what the docs say:
Code:
    /*
     * Enable PHP password protection (You can use if htpasswd is not possible for you)
     * If possible prefer htpasswd !
     * array( "username" => "xxx", "password" => "secret") : Enable PHP password protection
     * NULL : Disable PHP password protection (You can still use htpasswd)
     */
Ok, what am I staring at but missing?
MontyJ is offline   Reply With Quote
Old 05-21-2017, 07:04 PM   #1540
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
If you are using authorisation through .htaccess the user "monty" should be in the .htpasswd file with the same password as in config_local.php (or config_local.monty.php).

The line $config['cops_basic_authentication'] = ... etc is only needed if you do not use authentication through .htaccess.
mariosipad is offline   Reply With Quote
Old 05-21-2017, 07:21 PM   #1541
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
If you are using authorisation through .htaccess the user "monty" should be in the .htpasswd file with the same password as in config_local.php (or config_local.monty.php).

The line $config['cops_basic_authentication'] = ... etc is only needed if you do not use authentication through .htaccess.

But in this case I am not using .htaccess/.htpasswd.
Can you give me an example of the cops basic authentication statement for 2 users?

You suggest that the apache authentication and the COPS authentication work together but the docs suggest it's one or the other. Confusing as all get out!

I don't mind using .htaccess/.htpasswd, but the goal here is to have "user specific settings" in cops, as the docs suggest can be done.
MontyJ is offline   Reply With Quote
Old 05-21-2017, 07:30 PM   #1542
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Create for each user a file named config_local.user.php with inside only the $config lines out of config_local.php where each user differs in settings from the others.

For instance what libraries are seen by the user if you use multiple libraries. Etc.
mariosipad is offline   Reply With Quote
Old 05-21-2017, 09:13 PM   #1543
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
Create for each user a file named config_local.user.php with inside only the $config lines out of config_local.php where each user differs in settings from the others.

For instance what libraries are seen by the user if you use multiple libraries. Etc.
Wow...I think I really misunderstood the process! So, to clarify:

1. Essentially copy config_local.php to config_local.monty.php

2. Take out all lines except those that start with $config. I assume the php header (<?php) stays? Remember, not all of are programmers/coders!

3. Modify the new config file if any features are to be eliminated for 'monty', or other users with their own config file

4. Make an entry in the original config_local.php file for each user that will have his own named config file using the format shown?

Thanks. I may be slow, but if you pound my head with a 2x4 long enough, it usually sinks in!

[Edit]
Given you are on the other side of the pond, I suspect you are now asleep...or wish you were!

So, I tried the following. Here is my config_local.php for two users with php authentication:
Code:
<?php
    if (!isset($config))
        $config = array();

    /*
     ***************************************************
     * Please read config_default.php for all possible
     * configuration items
     ***************************************************
     */

    /*
     * The directory containing calibre's metadata.db file, with sub-directories
     * containing all the formats.
     * BEWARE : it has to end with a /
     */
     $config['calibre_directory'] = array (
    "01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
    "02 - Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/02-Fiction/",
    "03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/",
    "04 - Science Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/04-Science Fiction/");
    
    /*
     * Catalog's title
     */
    $config['cops_title_default'] = "COPS";
    
    /*
     * use URL rewriting for downloading of ebook in HTML catalog
     * See README for more information
     *  1 : enable
     *  0 : disable
     */
    $config['cops_use_url_rewriting'] = "0";

    $config['default_timezone'] = "America/Phoenix";

    $config['cops_use_fancyapps'] = "1";

    /*
     * Enable PHP password protection (You can use if htpasswd is not possible for you)
     * If possible prefer htpasswd !
     * array( "username" => "xxx", "password" => "secret") : Enable PHP password protection
     * NULL : Disable PHP password protection (You can still use htpasswd)
     */

    $config['cops_basic_authentication'] = array('username' => 'monty', 'password' => 'mypwd');

    $config['cops_basic_authentication'] = array('username' => 'user2', 'password' => 'user2pwd');
Now here is config_local.monty.php:
Code:
<?php
 
     $config['calibre_directory'] = array (
    "01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
    "02 - Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/02-Fiction/",
    "03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/",
    "04 - Science Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/04-Science Fiction/");

    $config['cops_title_default'] = "MONTY COPS";
    
    $config['cops_use_url_rewriting'] = "0";

    $config['default_timezone'] = "America/Phoenix";

    $config['cops_use_fancyapps'] = "1";
Per your instructions this 'user' config file has everything removed except the python header and the $config statements.

I modified the cops title setting just so I would know what user I was really looking at once I got in.

The second user file is identical to the monty file except his title setting reflects "USER2".

And while I do get the login screen, it just blinks and blanks out the data I type in.

I have done an apache restart, no change. All php files are set 0666, so assume they do not have to be set executable.

So, I am obviously still missing something on how this should work.

Last edited by MontyJ; 05-21-2017 at 10:52 PM. Reason: Update
MontyJ is offline   Reply With Quote
Old 05-22-2017, 07:40 AM   #1544
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Herewith an abbreviated example on how it should work (in this case not using .htaccess authentication):

A - config_local.php (all libraries and COPS user)
Code:
<?php
    if (!isset($config))
        $config = array();

    $config['calibre_directory'] = array (
    "01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
    "02 - Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/02-Fiction/",
    "03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/",
    "04 - Science Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/04-Science Fiction/");
    
    /*
     * Catalog's title
     */
    $config['cops_title_default'] = "COPS 1.1.1";
    
    $config['cops_use_url_rewriting'] = "0";

    $config['default_timezone'] = "America/Phoenix";

    $config['cops_basic_authentication'] = array('username' => 'cops', 'password' => 'secretpw');
B - config_local.monty.php (all libraries and user MONTY)
Code:
<?php

    /*
     * Catalog's title
     */
    $config['cops_title_default'] = "MONTY COPS";
    
    $config['cops_basic_authentication'] = array('username' => 'monty', 'password' => 'mypwd');
C - config_local.user2.php (limited access to libraries and user USER2)
Code:
<?php
    if (!isset($config))
        $config = array();

    $config['calibre_directory'] = array (
    "01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
    "03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/");
    
    /*
     * Catalog's title
     */
    $config['cops_title_default'] = "USER2 COPS";

    $config['cops_basic_authentication'] = array('username' => 'user2', 'password' => 'user2pwd');
PS: I'm in Europe (Netherlands) and you are in Arizona. Some time delay in answering your posts is inevitable.
mariosipad is offline   Reply With Quote
Old 05-22-2017, 10:31 AM   #1545
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
@mariosipad,

Thank You!

That post is getting lengthy, so continuing discussion in new post.

No joy. Just so there is no doubt, here is the EXACT config files, even down to the usernames and passwords.

File: config_local.php
Code:
<?php
    if (!isset($config))
        $config = array();

    $config['calibre_directory'] = array (
    "01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
    "02 - Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/02-Fiction/",
    "03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/",
    "04 - Science Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/04-Science Fiction/");
   
    /*
    * Catalog's title
    */
    $config['cops_title_default'] = "COPS 1.1.1";
   
    $config['cops_use_url_rewriting'] = "0";

    $config['default_timezone'] = "America/Phoenix";

    $config['cops_basic_authentication'] = array('username' => 'cops', 'password' => 'secretpw');
File: config_local.monty.php
Code:
<?php

    /*
    * Catalog's title
    */
    $config['cops_title_default'] = "MONTY COPS";
   
    $config['cops_basic_authentication'] = array('username' => 'monty', 'password' => 'mypwd');
File: config_local.user2.php
Code:
<?php
    if (!isset($config))
        $config = array();

    $config['calibre_directory'] = array (
    "01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
    "03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/");
   
    /*
    * Catalog's title
    */
    $config['cops_title_default'] = "USER2 COPS";

    $config['cops_basic_authentication'] = array('username' => 'user2', 'password' => 'user2pwd');
On all of these I do get the login form, but same results that it blinks and then clears. If I then hit the 'cancel' button, I get the message "This site is password protected".

Tried in Firefox and Chrome and Brave browsers. Cleared caches first. Tried all 3 logins exactly as shown in verbatim copies above.

Also tried removing the original .htaccess file from the /cops111 folder.

Used

192.168.x.xxx/cops111/

and

192.168.x.xxx:8164

with the same no joy results for both.

Frustrating...
MontyJ is offline   Reply With Quote
Reply

Tags
calibre opds, dns, kobo aura, synology


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre OPDS server with windows apps? nickdma Related Tools 10 03-03-2024 02:53 PM
[Old Thread] Android FBreader and Calibre OPDS server question kalex Calibre 5 12-24-2015 10:16 PM
PHP+Apache web server for calibre ... chaley Related Tools 254 04-28-2014 08:18 PM
External OPDS catalogue in Calibre bolton Calibre 1 09-05-2012 06:14 AM
Calibre Command Line usage with PHP artoros Related Tools 13 07-01-2010 09:57 AM


All times are GMT -4. The time now is 08:08 PM.


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