Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images in EPUB loading error when using reverse proxy server and unconventional port #3469

Open
aki-tomoyo opened this issue Dec 20, 2024 · 4 comments
Labels
needs-triage Needs to be triaged by a developer and assigned a release

Comments

@aki-tomoyo
Copy link

What happened?

Deploy using Docker containers:

Host port: 5000→Container port: 5000
Works fine when using IP requests on the intranet with HTTP.

HTTPS and same port with NGINX

server {
    listen 5000 ssl;
    ......
    error_page 497 https://$host:5000$request_uri;
    client_max_body_size 100M;
    location / {
        proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto  $scheme;
        proxy_set_header Host               $host;
        proxy_set_header Upgrade            $http_upgrade;
        proxy_set_header Connection         "upgrade";
        proxy_http_version                  1.1;
        proxy_pass                          http://192.168.1.199:5000; ## Host LAN IP
        proxy_redirect                      http:// https://;
    }
}

Image loading error when reading EPUB over HTTPS and public network

image
test
test1

What did you expect?

Use the correct port to access image resources instead of the default.

Kavita Version Number - If you don not see your version number listed, please update Kavita and see if your issue still persists.

0.8.4.2 - Stable

What operating system is Kavita being hosted from?

Docker (LSIO Container)

If the issue is being seen on Desktop, what OS are you running where you see the issue?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

No response

If the issue is being seen on Mobile, what OS are you running where you see the issue?

None

If the issue is being seen on the Mobile UI, what browsers are you seeing the problem on?

No response

Relevant log output

No response

Additional Notes

No response

@aki-tomoyo aki-tomoyo added the needs-triage Needs to be triaged by a developer and assigned a release label Dec 20, 2024
@wsdookadr
Copy link

Do you have a server_name directive in the nginx conf? I do on my side and it's working fine. Also see.

@aki-tomoyo
Copy link
Author

Do you have a server_name directive in the nginx conf? I do on my side and it's working fine. Also see.

Yes, I do. These are my configurations.
image
image

@wsdookadr
Copy link

Regarding your 2nd image which was taken in Kavita > Settings > Server > General > Networking > Host Name. I left that empty on my side and everything works fine.

@aki-tomoyo
Copy link
Author

Regarding your 2nd image which was taken in Kavita > Settings > Server > General > Networking > Host Name. I left that empty on my side and everything works fine.

Thanks your reply. But it's not working for me after I tried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Needs to be triaged by a developer and assigned a release
Projects
None yet
Development

No branches or pull requests

2 participants