NREL / api-umbrella

Open source API management platform
MIT License
2.02k stars 325 forks source link

[Docker] Webapp wrong redirections #373

Open toni07 opened 7 years ago

toni07 commented 7 years ago

Hi, I have installed the latest version of the package on Docker, my container is running OK, I can browse the home page of the Webapp, but when I try to go to /admin, I can see in the network debugger the app makes a request to https://192.168.254.35:32783/admin/auth, which is 302 redirected to https://192.168.254.35/signup.

As you can see, the second request does not have the port number, so obviously it does not work.

I have the same problem when browsing the links on the home page of the web app. Definitely not browser related (I tried different browsers), and not Docker related (the Webapp is working ok, as I can see the home page, and the Ajax calls in the network).

I wanted to try what seems to be a very interested software, but one minute later I'm already stuck :(

Thanks!

martinzuern commented 7 years ago

Referring to the documentation, you need to use port 80 and 443 on the host machine for now. (Or you can use something like an ELB oder other load balancers that map the ports to 80/443). But sounds like an interesting room for improvement to me.

toni07 commented 7 years ago

Thanks for your quick reply! Sorry I was not able to read this in the documentation (I have now to read it more carefully). I wish I could have helped you but I know nothing in Ruby. I still find it strange to miss the URL port in the redirection :) Is it webapp or server configuration related? Thanks