Comments (4)
You are probably missing forward headers like X-Forwarded-Proto
Check the closed issues, there's numerous people who can't configure nginx properly for reverse proxy. Or better, use Caddy, which works outside the box.
from komga.
Have you maybe set this via an environment variable? Can you post the relevant environment variables?
These urls are set in komga-webui/src/functions/urls.ts
. Unless the dev environment variables have been set they should be https whenever loaded from https.
const fullUrl = process.env.VUE_APP_KOMGA_API_URL
? process.env.VUE_APP_KOMGA_API_URL
: window.location.origin + window.resourceBaseUrl
const baseUrl = process.env.NODE_ENV === 'production' ? window.resourceBaseUrl : '/'
const urls = {
origin: !fullUrl.endsWith('/') ? `${fullUrl}/` : fullUrl,
originNoSlash: fullUrl.endsWith('/') ? fullUrl.slice(0, -1) : fullUrl,
base: !baseUrl.endsWith('/') ? `${baseUrl}/` : baseUrl,
baseNoSlash: baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl,
} as Urls
from komga.
Oh, you are right! I hadn’t searched for nginx in the closed issues because I thought the problem was not about Nginx.
It turns out you were right; I found that issue #1322 has a solution for this problem.
I tried adding the config proxy_set_header X-Forwarded-Proto $scheme;
to my nginx reverse proxy.
Now my epub book has been restored. Thanks for your help!
from komga.
You are probably missing forward headers like X-Forwarded-Proto
Check the closed issues, there's numerous people who can't configure nginx properly for reverse proxy. Or better, use Caddy, which works outside the box.
Hi, I also faced this problem but i'm using apache as reverseproxy, and according to the X-Forwarded-Proto. I added this sentence
RequestHeader setifempty X-Forwarded-Proto "https"
and it works.
Hope this could work for you, I think it's the problem of the https head misuse.
from komga.
Related Issues (20)
- Add a "view all" button to the book strip view in Recommended page and search results
- Disable bounce when reaching web page end on iOS ipadOS devices
- Set poster from ComicInfo.xml metadata rather than first page HOT 1
- Remove from collection or read list in series/book page
- footer text on small screen get pushed up into main body text
- Can't edit series metadata HOT 27
- web ui: Find and go to page option for epub. HOT 1
- Search Authors automatically when searching HOT 1
- Sub-title display field for series
- Epub reader to highlight text (to serve as bookmarks) or just bookmark pages
- Search for books with COMMENT
- ePub: Cover support for ePub files generated by older versions of Sigil HOT 1
- Refresh metadata does not update removed metadata from files HOT 1
- Allow read lists to use first/last book as cover image globally
- Allow decimal number usage for StoryArcNumber element in ComicInfo.xml HOT 3
- When OAuth2 login is enabled, SERVER_SERVLET_SESSION_TIMEOUT seems not to take effect properly HOT 7
- Add page margins option in the webtoon mode
- Komga doesn't log unauthenticated requests HOT 1
- Komga doesn't log Tomcat errors HOT 2
- files not analyzed on mac HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from komga.