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

Improve webserver mount-point compatibility (#129) #130

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

SpraxDev
Copy link

As proposed in my issue #129, the client-side interactive stuff should behave similar to the assets loaded by the website (js, css, ...). Let SockJS and the browser handle the details.

In a setup where the webinterface is running behind a reverse proxy at a different path, requests done
by the JavaScript go to the wrong path.
(Reverse proxy is setup in a way where the
browser/webserver sees /warrior1/api/stop but seesaw-kit still sees /api/stop.


With a little hack these changes are currently used for my running setup, successfully hosting multiple warriors behind the same host but on different paths.

@SpraxDev SpraxDev changed the title Improve webserver moint-point compatibility (#129) Improve webserver mount-point compatibility (#129) Oct 28, 2022
As proposed in my issue ArchiveTeam#129,
the client-side interactive stuff should behave similar
to the assets loaded by the website (js, css, ...).
Let SockJS and the browser handle the details.

In a setup where the webinterface is running behind a
reverse proxy at a different path, requests done
by the JavaScript go to the wrong path.
(Reverse proxy is setup in a way where the
browser/webserver sees `/warrior1/api/stop` but seesaw-kit
still sees `/api/stop`.
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

1 participant