-
Notifications
You must be signed in to change notification settings - Fork 91
Switch from express-http-proxy to node-http-proxy, proxy to [::1]:3000 #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
node-http-proxy development is more active, and it seems it can handle both `Transfer-Encoding: chunked` and proxying to `http://[::1]:3000/api`. Closes #8
|
@himdel This does seem to work most of the times. However, I occasionally see an error when I click on Service Catalogs - it is simply unable to fetch the list and this is what I see in the log -
One other thing that I noticed was, none of the images are loaded in the list views and detailed views. |
Oh, thanks for noticing, that's caused by the SSUI split .. only affects SSUI in devel mode, otherwise /pictures is mapped fine .. but d6571a4 should fix it by also proxying the |
The Service Catalog thing.. sometimes the API returns |
@AparnaKarve I've created ManageIQ/manageiq#6878 for the Service Catalog problem. |
I'd like to get this merged.. @h-kataria @imtayadeway would you mind giving this a whilr as well? |
ran SSUI with this PR, seems to be working fine. Labeled this PR as bug as this is related to some people seeing issues with Rails 5. |
@matthewd please take a look |
Sounds reasonable. My only concern is that as we're hard-coding the IPv6 IP, this won't work for someone who has IPv6 disabled, say... or has a more unusual value for localhost. Perhaps it'd be worth making it (plus the port, I guess) overridable with an env var? |
@matthewd That's my concern too, unfortunately it seems impossible to force puma to listen on both (In fact, @h-kataria already had to - ::1 localhost6
+ ::1 localhost in So.. overridable with an env var sounds really great.. will do that, thanks! :) |
+ update README to fit
Done, we're now reading a |
Checked commits https://github.com/himdel/manageiq-ui-self_service/compare/397e3e00da5b9a4f82d583a6b6b6597f0f8d95f7~...514fb4a32bdf25b7a41a354e74c790da29195e2c with ruby 2.2.3, rubocop 0.37.2, and haml-lint 0.16.1 |
@AparnaKarve I believe your issue should be addressed in ManageIQ/manageiq#6892 |
@himdel that does the trick for me 👍 |
@imtayadeway Thanks! I will try how ManageIQ/manageiq#6892 works. @himdel @matthewd Thanks for the environment variable trick. 👍 Backward compatibility with |
Switch from express-http-proxy to node-http-proxy, proxy to [::1]:3000
node-http-proxy development is more active, and it seems it can handle both
Transfer-Encoding: chunked
and proxying tohttp://[::1]:3000/api
.Closes #8
@AparnaKarve can you test it too please?