seblucas / cops

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)
http://blog.slucas.fr/en/oss/calibre-opds-php-server
GNU General Public License v2.0
1.42k stars 229 forks source link

Can I host COPS on Github or Netlify with library in cloud? #513

Open BravishkaSkytano opened 2 years ago

BravishkaSkytano commented 2 years ago

Hello!

I just want to know if it would be possible for me to run the COPS server on GitHub Pages or Netlify with my Calibre library in a cloud service (in my case, Mega).

I don't know PHP, so I don't want to mess around with this unless it will work. In theory, I don't see why the server itself wouldn't work, but I don't know about the cloud library. Why can't I find anything on this? Lol

Thanks in advance!

marioscube commented 2 years ago

You need to be able to "mount" the cloud service on a directory in the webserver. So that depends on:

I don't know.

BravishkaSkytano commented 2 years ago

Even if I make the cloud folder public?

marioscube commented 2 years ago

You need to be able to point COPS to a calibre library.

$config['calibre_directory'] = './Calibrelibrary/';

if you are able to do that it might work.

BravishkaSkytano commented 2 years ago

Okay, 'm going to try it and see. Thanks.

BravishkaSkytano commented 2 years ago

Yeah, it doesn't work :( I think its my cloud service though. Thanks anyway

mikespub commented 3 months ago

Github Pages or Netlify only support static files, so you would need to use something like https://github.com/calibre2opds/calibre2opds or a more modern equivalent to generate the files first

For COPS you need to have some backend server that can handle PHP scripts. Starting with release 2.7.1 the Calibre library itself can be in the cloud - see #506