Fix console 404 issue when accessing via domain_name - #255
Merged
jbonofre merged 1 commit intoJul 27, 2026
Merged
Conversation
jbonofre
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fix issue reported in #249.
So what happened here is we changed the console port number from original 80 (which caused issue in #231) to 4040 then changed to 8080 during recent helm re-work as suggested by the team (8080 for console, 8181 for polaris api, and 8182 for polaris metrics). However, this caused one issue when accessing console via domain name where end-users would be getting 404 for all endpoints. But this doesn't cause issue when accessing via
localhostvia port forwarding.Now this is actually due to the incorrect way of how we are using the Nginx UBI image. Following is the snippet for default
nginx.conf.What the dockerfile was doing earlier was creating a new server section via
include /opt/app-root/etc/nginx.d/*.conf;. This was not a problem when we are using non-8080 port as that new server section would captured all. However, as we are using port 8080 withserver_name localhost, it will covered the usage when accesing via 8080. The problem comes when we are using domain as the newly added server section won't catch it anymore and it will fall into second (original) one which yield 404.The fix in this PR is to ensure we only have one server running for nginx by inject our location blocks inside the UBI's existing default server.
Validation for both access via localhost as well as a dummy local domain:
dummy local domain:


localhost: