calzoneman / sync

Node.JS Server and JavaScript/HTML Client for synchronizing online media
Other
1.46k stars 235 forks source link

The socket.io library could not be loaded #847

Closed AmadeusTrill closed 4 years ago

AmadeusTrill commented 4 years ago

Please fill out the templates below to the best of your ability, based on whether your problem is with using the website or with running your own server.

Website Problem

Please confirm whether you've tried the following debugging steps:

Description of the Problem

System Information

On Firefox, press Ctrl+Shift+K to open the JavaScript console. On Chrome, press Ctrl+Shift+J.

Server Problem

If your issue is related to using the website and not about running a server, you can remove this section.

Please confirm whether you've tried the following debugging steps:

Description of the Problem

Looking for advice on how to set up the io section essentially, registering logging in and creating channels is all working. I am behind a reverse proxy if that helps at all.

calzoneman commented 4 years ago

Please explain what you have already tried to troubleshoot the problem.

calzoneman commented 4 years ago

For reverse proxying HTTPS, you can refer to the examples on https://github.com/calzoneman/sync/wiki/CyTube-3.0-Installation-Guide#appendix-a-example-config-using-nginx-with-ssl

For reverse proxying socket.io, I don't do this on my instances (it's just extra overhead copying sockets from one process to another), so I don't have advice on how to configure it. If you find a way to do it, updating the wiki with an example (and if necessary, contributing a patch to fix any missing functionality) would be appreciated.

calzoneman commented 4 years ago

I added an FAQ because this has come up before and it's now been several years and the crappiness of config.yaml still hasn't been fixed. This might help you understand why it's not working:

https://github.com/calzoneman/sync/wiki/Server-Hosting-FAQ#why-do-i-get-an-error-loading-socketio-when-i-use-a-reverse-proxy-for-https

calzoneman commented 4 years ago

I'm resolving this question since I haven't heard back in a couple days. If you need further clarification, feel free to comment and I can reopen it.