walfie / gbf-raidfinder

Granblue Raid Finder (Archived: Granblue no longer has raid tweets)
https://gbf-raidfinder.aikats.us
MIT License
206 stars 106 forks source link

custom subdomain not working? #128

Closed CaiMiao closed 6 years ago

CaiMiao commented 6 years ago

I'm trying to setup a clean build on my VPS, everything seems ok when I directly visit 0.0.0.0:9000 but it seems not meaning to load twitter streams when I visit my subdomain for the app. My workaround is Apache redirecting, any clue?

walfie commented 6 years ago

I'm not familiar with Apache or your specific redirect setup, but make sure that whatever your setup is, it can handle websockets on the same port.

CaiMiao commented 6 years ago
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName sub.example.host
    ProxyPass / http://0.0.0.0:9000/
    ProxyPassReverse / http://0.0.0.0:9000/

    ProxyPass /ws/raids ws://0.0.0.0:9000/ws/raids
    ProxyPass /ws/raids wss://0.0.0.0:9000/ws/raids
</VirtualHost>

i tried to handle but it still not working...

CaiMiao commented 6 years ago

I'm done, solved by advancing ws proxy line.

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName sub.example.host

    ProxyPass /ws/raids ws://0.0.0.0:9000/ws/raids
    ProxyPass /ws/raids wss://0.0.0.0:9000/ws/raids

    ProxyPass / http://0.0.0.0:9000/
    ProxyPassReverse / http://0.0.0.0:9000/
</VirtualHost>