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

Context path support for UI #4889

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dforrest-es
Copy link

What problem are we solving?

Creating subdomains for 3 different UIs may not be possible or feasible for a given project or company. This PR adds optional parameters to serve the filer & master UI's on a context path. Original idea found in this discussion idea.

How are we solving the problem?

Adding new configuration items master.ui.contextPath, filer.ui.contextPath & volume.ui.contextPath when run via weed server and ui.contextPath when servers are run individually.

A new internal context-path variable is used to wrap UI endpoint registration & prefix rendered html documents.

How is the PR tested?

By hand on a development test server.

Checks

  • I have added unit tests if possible.
  • I will add related wiki document changes and link to this PR after merging.

@dforrest-es
Copy link
Author

I will add related wiki document changes and link to this PR after merging.

I haven't worked with GitHub wikis before and am unsure how to approach this task, any guidance here?

</head>
<body>
<div class="container">
<div class="page-header">
<h1>
<a href="https://github.com/seaweedfs/seaweedfs"><img src="/seaweedfsstatic/seaweed50x50.png"></img></a>
<a href="https://github.com/seaweedfs/seaweedfs"><img src="{{ $contextPath }}/seaweedfsstatic/seaweed50x50.png"></img></a>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other links in this page to volume servers would not be able to have the contextPath fix.

I do not have a good solution for this though.

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

Successfully merging this pull request may close these issues.

None yet

2 participants