-
Notifications
You must be signed in to change notification settings - Fork 672
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
NOISSUE - Enable UI prefix when running behind reverse proxy #2717
base: main
Are you sure you want to change the base?
Conversation
87251a1
to
8e134d8
Compare
8e134d8
to
5f88403
Compare
@@ -138,6 +138,23 @@ http { | |||
include snippets/ws-upgrade.conf; | |||
proxy_pass http://ws-adapter:${SMQ_WS_ADAPTER_HTTP_PORT}/; | |||
} | |||
|
|||
# Proxy Pass to the Magistrala UI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please align this line with other
- ui | ||
- ui-backend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no ui or ui-backend in this docker-compose
@@ -125,6 +125,23 @@ http { | |||
include snippets/ws-upgrade.conf; | |||
proxy_pass http://ws-adapter:${SMQ_WS_ADAPTER_HTTP_PORT}/; | |||
} | |||
|
|||
# Proxy Pass to the Magistrala UI | |||
location /ui/ { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Docker Compose file currently doesn't include ui or ui-backend, so Nginx won't start properly until all the endpoints are accessible. To make this PR functional, we need to add ui and ui-backend to the Docker Compose configuration. Without these, this PR won't be effective.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need to add them, as well. Similar to what we did for Magistrala. @Musilah Please take care of this.
Signed-off-by: Musilah <[email protected]>
Signed-off-by: Musilah <[email protected]>
Signed-off-by: Musilah <[email protected]>
Signed-off-by: Musilah <[email protected]>
Signed-off-by: Musilah <[email protected]>
5f88403
to
b0f27d8
Compare
What type of PR is this?
This is a feature because it enables UI prefix when running behind reverse proxy.
What does this do?
Enable UI prefix when running behind reverse proxy.
Now a user can reach the ui via :
http://ui:3000/
Which issue(s) does this PR fix/relate to?
N/A
Have you included tests for your changes?
N/A
Did you document any new/modified feature?
N/A
Notes