C9Glax / tranga-website

Web-Frontend for Tranga-API
GNU General Public License v3.0
17 stars 10 forks source link

API-URI Error when using reverse proxy #53

Closed yacob841 closed 6 months ago

yacob841 commented 6 months ago

I am using NPM and Authentik causing my URL to become https://domain.tld. After settings this if I access tranga-web using ip and port then it works but if I use domain.tld I get an error stating "Check your Settings > API-URI" when I view that it shows a greyed out "https://" I attempt to put "https://domain.tld" but after pressing update it disappears and the issue remains. Any ideas on how to resolve this?

db-2001 commented 6 months ago

Just to be clear, you understand that the URI should be the url of the tranga-api which should be different from the url of the front-end right? From your description it seems like you're trying to access both services from the same link which just won't work.

yacob841 commented 6 months ago

Yeah, I realized that after the fact but even when I put the tranga-api url it doesn’t work as long as I’m accessing tranga using reverse proxy. I’ll try messing with it some more.On Feb 13, 2024, at 7:10 PM, Dity @.***> wrote: Just to be clear, you understand that the URI should be the url of the tranga-api which should be different from the url of the front-end right? From your description it seems like you're trying to access both services from the same link which just won't work.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

db-2001 commented 6 months ago

The issue could also be HTTPS. The front-end makes HTTP requests currently so any HTTPS server will block those by default. HTTPS is something that is on our radar. The main repository has some issues (might be closed) over there that may be of help.