Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Musilah
Copy link
Contributor

@Musilah Musilah commented Feb 18, 2025

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

  • Related Issue #
  • Resolves #

Have you included tests for your changes?

N/A

Did you document any new/modified feature?

N/A

Notes

@Musilah Musilah marked this pull request as ready for review February 19, 2025 06:43
@Musilah Musilah requested a review from a team as a code owner February 19, 2025 06:43
@@ -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
Copy link
Contributor

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

Comment on lines +333 to +335
- ui
- ui-backend
Copy link
Contributor

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/ {
Copy link
Contributor

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.

Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚧 In Progress
Development

Successfully merging this pull request may close these issues.

4 participants