Skip to content

[Bug] Kobo Sync API not available via reverse proxy #2586

@Matthias-vdE

Description

@Matthias-vdE

What Went Wrong?

I have my instance of Booklore behind a npm-plus reverse proxy. This is reachable via https://booklore.mydomain.com. I can login, edit books, everything works just fine.

However, trying to reach the API endpoint:

https://booklore.mydomain.com/api/kobo/{api-key} always redirects me to the homepage.

Using the IP address

http://{ip}:{port}/api/kobo/{api-key}

Gives me a JSON web page.

My Kobo Ereader conf file contains the required "api_endpoint" for syncing.

Using my domain name does not work. Using the IP and Port does work.

However, this did work in the previous version. Nothing has changed about my proxy configuration. I am still using the advanced config as described in https://booklore.org/docs/integration/kobo?_highlight=reverse&_highlight=proxy#%EF%B8%8F-nginx-proxy-configuration

Neither the Booklore container, nor the npm-plus container are showing errors. My Kobo gives the error "Sync Failed. No Internet Access" when using the domain name instead of the ip:port.

How Can We Reproduce This?

  1. Use booklore behind an npm-plus reverse proxy: Sync Failed.
  2. Use booklore directly via ip:port: Sync works.

What Should Have Happened?

Sync should also work via reverse proxy when configured as described in the documentation.

Screenshots or Error Messages (Optional)

No response

Any Ideas on How to Fix This? (Optional)

No response

Your Setup

  • Booklore v1.18.5
  • Installation: Docker
  • Reverse proxy: npm-plus

Before Submitting

  • I've searched existing issues and confirmed this bug hasn't been reported yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions