C9Glax / tranga

Docker-Container to monitor (Manga) Scanlation-Sites for download new chapters.
GNU General Public License v3.0
157 stars 15 forks source link

[It broke]: API-URI not working #104

Closed ghost closed 10 months ago

ghost commented 10 months ago

What is broken?

I installed the docker and have both routed to 127.0.0.1:port:port cuz im on a vps but everytime i enter the api uri aka 127.0.0.1:6351 it just dissapears and does nothing.

Log-output

No response

Additional stuff

No response

C9Glax commented 10 months ago

Because you just pointed your Browser to ask at 127.0.0.1 which is your local computer. Unless you are hosting your docker instance on your computer that is not gonna work. Enter the IP of the machine tranga is running on

ghost commented 10 months ago

Because you just pointed your Browser to ask at 127.0.0.1 which is your local computer. Unless you are hosting your docker instance on your computer that is not gonna work. Enter the IP of the machine tranga is running on

im connected to my vps & tranga website trough an ssh port tunnel, im actually accessing it over my vps so it should just send it back to my vps, i will defenetly not open up the tranga api on my vps.

ghost commented 10 months ago

Maybe you have a solution how to fix that, installing a desktop and accessing the desktop inside the docker maybe ?

ghost commented 10 months ago

Maybe the tunnel doesnt send the stuff back from the website cuz i missunderstood how the port tunnels work, i will try the desktop method.

C9Glax commented 10 months ago

Well the webpage is only executing local javascript. There is no connection between the containers. So anything that is on the webpage is on your local machine. The webpage requests data from the api over http, so unless your local machine has access to tranga-api nothing is gonna happen. Virtual desktop should work and then the IP would be 127.0.0.1.