You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to setup a couple of warriors using the official Docker images.
I wanted to host all of them behind one convenient domain like warriors.example.com/reddit/ using nginx as my reverse proxy.
This already works for the assets loaded but seems to break for the SockJS-Script.
It is requesting /info instead of /reddit/info in my case (same goes for /api/all-projects).
I couldn't find any reason for SockJS getting a custom built URL in the first place instead of just providing the current URL. Maybe adding the current path or using the current full URL would work here as SockJS already preprocessed the given URL?
(var conn = new SockJS(window.location.protocol + '//' + window.location.host + window.location.pathname);)
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`.
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`.
I'm currently trying to setup a couple of warriors using the official Docker images.
I wanted to host all of them behind one convenient domain like
warriors.example.com/reddit/
using nginx as my reverse proxy.This already works for the assets loaded but seems to break for the SockJS-Script.
It is requesting
/info
instead of/reddit/info
in my case (same goes for/api/all-projects
).The problem seems to be at
seesaw-kit/seesaw/public/script.js
Line 2 in 2dc0bad
and got introduces in fa11921.
I couldn't find any reason for SockJS getting a custom built URL in the first place instead of just providing the current URL. Maybe adding the current path or using the current full URL would work here as SockJS already preprocessed the given URL?
(
var conn = new SockJS(window.location.protocol + '//' + window.location.host + window.location.pathname);
)seesaw-kit/seesaw/public/sockjs-0.3.js
Lines 300 to 320 in 699b0d2
To fix the
/api
routes it should be possible to just let the browser handle everything and calling a relative uri atseesaw-kit/seesaw/public/script.js
Lines 274 to 306 in 2dc0bad
The text was updated successfully, but these errors were encountered: