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

how to use kagerou with WebSocket plugin? #144

Open
pastarice opened this issue Aug 28, 2019 · 6 comments
Open

how to use kagerou with WebSocket plugin? #144

pastarice opened this issue Aug 28, 2019 · 6 comments

Comments

@pastarice
Copy link

I tried to input the url into websocket the same way that I do for mopimopi, but it doesn't work.

Would you please let me know how to set it up?

Thanks

@hibiyasleep
Copy link
Owner

this url should work: http://unsecure.idyllshi.re/kagerou/overlay?HOST_PORT=ws://localhost:10501

the HOST_PORT part is which should be attached by OverlayProc, but it seems didn't.

@FX8350
Copy link

FX8350 commented Dec 25, 2019

I found several URLs. What's the difference?

1: http://unsecure.idyllshi.re/kagerou/overlay?HOST_POR=ws://localhost:10501
(posed on this thread)
2: https://idyllshi.re/kagerou/overlay/?HOST_PORT=ws://127.0.0.1:10501/
(https://ngld.github.io/OverlayPlugin/streamers)
3: https://hibiyasleep.github.io/kagerou/overlay/?HOST_PORT=ws://127.0.0.1:10501/
(NGLD OverlayPlugin 0.11.6.0 show this URL)
4: http://kagerou.hibiya.moe/overlay/?HOST_PORT=ws://127.0.0.1:10501/
(Redirected from github.io )

@hibiyasleep
Copy link
Owner

tl;dr: ACTWebSocket doesn't allow HTTPS for overlays since local WebSocket connection is not secured.

  • hibiyasleep.github.io is the first and original URL served directly from GitHub. HTTPS is forced.
  • kagerou.hibiya.moe is HTTP-only replacement; when WebSocket user opens HTTPS URL from its OverlayProcess, browser etc, an overlay will redirect user here.
  • idyllshi.re is just yet another domain. I'm trying to make new users use this URL.
  • unsecure.idyllshi.re exists for the same reason as kagerou.hibiya.moe.

@dkolb
Copy link

dkolb commented Feb 1, 2020

Not to necro this issue but I'm trying to set up to use my phone as a second screen. http://unsecure.idyllshi.re/kagerou/overlay?HOST_PORT=ws://{MY_IP}:10501 redirects me to https://hibiya.moe/kagerou/overlay?HOSTPORT=ws://{MY_IP}:10501 and gives me NGINX Not Found. This is for both Firefox and Chrome on Android 10.

@hibiyasleep
Copy link
Owner

I just failed to reproduce on Chrome on Android 9, but it could be my server configuration error... is http://unsecure.~~~ URL working now?

@dkolb
Copy link

dkolb commented Feb 6, 2020

Chrome on Android 10 here. It's still sending me to https://hibiya.moe~~~
I cleared the disk cache and got Chrome Remote Debugging up and running.

Here's the request:

GET /kagerou/overlay/?HOST_PORT=ws://192.168.86.38:10501 HTTP/1.1
Host: unsecure.idyllshi.re
Connection: keep-alive
DNT: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Linux; Android 10; Pixel 3 XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Mobile Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9

And here's the response:

HTTP/1.1 301 Moved Permanently
Server: nginx/1.10.3 (Ubuntu)
Date: Thu, 06 Feb 2020 01:05:01 GMT
Content-Type: text/html
Content-Length: 194
Connection: keep-alive
Location: https://hibiya.moe/kagerou/overlay/?HOST_PORT=ws://192.168.86.38:10501

It looks like I'm coming in over ipv6 too, if that matters.

image

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

No branches or pull requests

4 participants