-
Notifications
You must be signed in to change notification settings - Fork 173
Changing BaseURI not working at all #755
Comments
maybe related to #621 |
Hello, After the change in config.js have you ran npm run build ? Also, make sure there's a trailing / into URI:
Also, if you're running a reverse proxy in front of flood make sure there's a trailing / there as well, for example (nginx):
|
Yes, i reran npm build. Trailing slash doesn't matter, if you look at the code it adds one if missing. Problem occurs when accessing directly so reverse proxy config isn't relevant (yet). |
I've tried on the latest master this a few times and every time it worked. Sequence of events:
Every time the change of baseURI worked (I disabled cache while keeping open developer tools in order to avoid surprises). EDIT: there's a difference between npm build and npm run build. Make sure you don't make that mistake, as silly as it looks. |
https://asciinema.org/a/k1yfS6uqN0tXuM1tesR0iZwGV As i said, it doesn't work as described. Question is why? |
You're not doing it well, baseURI is not modifying the return of pages, it's changing the import location |
what exactly am I supposed to do then? If you look carefully, every URL that I curl is returning the same exact content. Including the URLs it's referencing, e.g. |
I have tried again and still cannot reproduce.
And I can connect to flood just fine using the browser. EDIT: I may have reproduced something similar. It ONLY happens if you access flood on localhost. For example, if you port forward 3000 to your local machine on port 3000 then the GUI doesn't load in Chrome. However, if, like I did, you access something like https://ip/flood (I have an nginx server in front) then the UI loads. |
Aha. So with a reverse proxy which sends all requests to flood from localhost it will also happen then. Nice find. I'll try to confirm this when i have some free time |
No, for me (TM) the UI loads when accessed through nginx (I have something like me->cloudflare (let's say seedbox.domain.com) ->nginx with CF edge certificate-> /flood mapped in nginx to 127.0.0.1:3000). What works: https://seedbox.domain.com/flood in Chrome |
Well, this doesn't work for me even when I pass it an actual hostname. Everything works fine with |
Just out of curiosity, are you trying from a browser? |
Yes, same results with chrome and curl. |
I think issue 761 is related to this. Seems to happen when you use a reverse proxy (traefik) in my case and change the baseURI. |
This is consistently a problem for people, so somehow we need to do a better job educating users. In all of these cases, it is a misconfiguration of the proxy — this is not an issue with Flood. The feature is working as expected. Please read this documentation in the wiki. |
@jfurrow in my comment above, I'm using curl directly against Flood and it is not working as expected. How is it a misconfiguration of the proxy then? |
@infernix It's because you're expecting behavior that the feature doesn't do. Read the documentation. |
Has anyone successfully found a traefik configuration that will work with flood? Using traefik for about 30 other applications and don't experience this type of behavior. I have no problem hitting flood directly but when proxying via traefik, it experiences the issue with not rending anything after the initial flood login screen. This is with the default |
@billimek That's a common issue seen by folks who aren't properly forwarding all of the requests (all API endpoints and static assets) to the Flood server, or haven't re-built their static assets after configuring the |
Using the same traefik configuration doesn't exhibit this behavior with an older version of the Flood that's baked into the docker image Hopefully someone here in this issue or the other issue has found a way to work around this and can post whatever special traefik configuration is necessary to make it work! |
Type: Bug Report
Your Environment
2cd1aa6
node --version
v8.15.0
npm --version
6.4.1
name and version
Chrome 71
Debian 9
Summary
With baseURI set to '/' everything works. With any other value, every request is returning contents of / (e.g. "index.html").
Note the size of each returned request is identical:
Content of each response is:
Not using any reverse proxying here. And again, when leaving baseURI as '/' everything works.
Expected Behavior
baseURI changes should work.
Current Behavior
Not working at all
Possible Solution
No idea :|
Steps to Reproduce
Context
make it work
The text was updated successfully, but these errors were encountered: