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

Remove the proxy server #394

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

JulianKniephoff
Copy link
Member

Well, the outer one at least. For context: This app had two proxies:

One comes with create-react-app as a middleware in the dev server, proxying all the requests the frontend makes (except for the static JS, CSS, etc. assets this project is generating) to some other server.

In production, Opencast delivers the admin UI assets and the backend under the same URL, but in development this is not true. The development server delivers the assets and the backend is ... well it's complicated.

So far you either started a static file server which was acting as a mock backend, or you started another proxy server that piped the requests through to an Opencast instance of your choosing while tacking on some digest authentication.

Well, the dev server proxy can't (easily) do digest auth, but the fact that we insist on digest auth is a historical artifact, anyway, at least as far as I know. It can do basic auth, though, and it is a proxy, so it can do everything we need!

This also updates the README appropriately and cleans it up some in general (though not completely).

@JulianKniephoff JulianKniephoff added the type:code-enhancement Internal improvements to the codebase label May 14, 2024

This comment was marked as resolved.

JulianKniephoff added a commit to JulianKniephoff/opencast-admin-interface that referenced this pull request May 16, 2024
With this, the outer npm-project is finally obsolete.
See the updated `README` for how to use it and the proxy server.
I abstained from restructuring the project any further
to keep the PR focused, but a PR that will do nothing
but move things around is in the pipeline.

Note, this is based on opencast#394.
JulianKniephoff added a commit to JulianKniephoff/opencast-admin-interface that referenced this pull request May 16, 2024
With this, the outer npm-project is finally obsolete.
See the updated `README` for how to use it and the proxy server.
I abstained from restructuring the project any further
to keep the PR focused, but a PR that will do nothing
but move things around is in the pipeline.

Note, this is based on opencast#394.
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
JulianKniephoff added a commit to JulianKniephoff/opencast-admin-interface that referenced this pull request May 16, 2024
With the refactoring of the development servers done in opencast#398
and indirectly opencast#394, there is an opportunity to boil down
the project structure a bit.

This PR does nothing but move files around and make the necessary
changes to keep everything working. (Fingers crossed.)
@JulianKniephoff JulianKniephoff requested a review from Arnei May 16, 2024 13:47
Well, the outer one at least. For context: This app had two proxies:

One comes with `create-react-app` as a middleware in the dev server,
proxying all the requests the frontend makes (except for the static
JS, CSS, etc. assets this project is generating) to some other
server.

In production, Opencast delivers the admin UI assets and the
backend under the same URL, but in development this is not true.
The development server delivers the assets and the backend is ...
well it's complicated.

So far you either started a static file server which was acting as a
mock backend, or you started **another** proxy server that piped the
requests through to an Opencast instance of your choosing while
tacking on some digest authentication.

Well, the dev server proxy can't (easily) do digest auth, but the fact
that we insist on digest auth is a historical artifact, anyway, at
least as far as I know. It can do basic auth, though, and it **is** a
proxy, so it can do everything we need!

This also updates the `README` appropriately and cleans it up some in
general (though not completely).
@JulianKniephoff JulianKniephoff merged commit 635c448 into opencast:main May 21, 2024
1 check passed
@JulianKniephoff JulianKniephoff deleted the remove-proxy branch May 21, 2024 10:21
JulianKniephoff added a commit to JulianKniephoff/opencast-admin-interface that referenced this pull request May 21, 2024
With this, the outer npm-project is finally obsolete.
See the updated `README` for how to use it and the proxy server.
I abstained from restructuring the project any further
to keep the PR focused, but a PR that will do nothing
but move things around is in the pipeline.

Note, this is based on opencast#394.
JulianKniephoff added a commit to JulianKniephoff/opencast-admin-interface that referenced this pull request May 21, 2024
With the refactoring of the development servers done in opencast#398
and indirectly opencast#394, there is an opportunity to boil down
the project structure a bit.

This PR does nothing but move files around and make the necessary
changes to keep everything working. (Fingers crossed.)
JulianKniephoff added a commit to JulianKniephoff/opencast-admin-interface that referenced this pull request May 22, 2024
With this, the outer npm-project is finally obsolete.
See the updated `README` for how to use it and the proxy server.
I abstained from restructuring the project any further
to keep the PR focused, but a PR that will do nothing
but move things around is in the pipeline.

Note, this is based on opencast#394.
JulianKniephoff added a commit to JulianKniephoff/opencast-admin-interface that referenced this pull request May 23, 2024
With the refactoring of the development servers done in opencast#398
and indirectly opencast#394, there is an opportunity to boil down
the project structure a bit.

This PR does nothing but move files around and make the necessary
changes to keep everything working. (Fingers crossed.)
JulianKniephoff added a commit to JulianKniephoff/opencast-admin-interface that referenced this pull request May 23, 2024
With the refactoring of the development servers done in opencast#398
and indirectly opencast#394, there is an opportunity to boil down
the project structure a bit.

This PR does nothing but move files around and make the necessary
changes to keep everything working. (Fingers crossed.)
JulianKniephoff added a commit to JulianKniephoff/opencast-admin-interface that referenced this pull request May 23, 2024
With the refactoring of the development servers done in opencast#398
and indirectly opencast#394, there is an opportunity to boil down
the project structure a bit.

This PR does nothing but move files around and make the necessary
changes to keep everything working. (Fingers crossed.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:code-enhancement Internal improvements to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants