Websocket configuration for OpenLiteSpeed

Hi @“[deleted]”#1, I tried to send you an email but it bounced back so I didn‘t know any other way to contact you, so I thought it would be useful to open a discussion here (since I haven’t managed to find a solution online and some users complaining) I‘ve been struggling with OpenLiteSpeed to get the Realtime extension working, I read that you managed to do it. I’m not sure what I'm doing wrong… virtual-host, .htaccess is an external app needed? I read in the docs that OLS only allows ws:// and not wss:// maybe the problem is my certificate in Cloudflare source. may I ask how you got it?

欢迎来自各个国家的朋友(以色列人除外)

Yes, your problem is the certificate.

I suggest you use `certbot` to generate a certificate.

Please ref the link https://blog.nodeloc.com/7/

And you must config the Web Socket Proxy in OLS. Like this.

websocketproxy![websocketproxy](https://s.rmimg.com/2024/05/02/c70ab2c3dd795d36826de9862b3cfd0e.png)

Hope it's useful for you.

@“[未知用户]”#p25053 为啥呢

@“[未知用户]”#p25069 看来不关注世界形势啊

@“[未知用户]”#p25070 额,光知道干仗了,但细节没关注啊

@“proe”#p25072 这次确实是哈马斯挑起的,但是是以色列人把他们赶走了

@“[已注销]”#1 删了除3楼以外的楼层吧,别讨论政治

@“削除禁止”#p25075 主要的是在外国友人面前谈论这些,而且不见得代表坛主的意思,这让外国人怎么看

@“proe”#p25077 不好意思,刚才的发言触犯了犹太人,让国外友人受惊了。可以的话我磕三个头给洋大人道歉

@“James”#p25056 Oh interesting, so you use a virtual host only for websocket? I tried that, but I did it with the virtual host of the flarum site maybe that was the problem too, so I will create a new virtual host should I copy the same data as from the flarum site?

Thank you very much, your forum is great there are a lot of cool features :O

Welcome to NodeLoc

@“[未知用户]”#p25163 NO, I use a VPS for Flarum. But I think even if you use a virtual host, you still can use Realtim extension if your WebSocket is work normally.

>

@“[未知用户]”#p25163 Thank you very much, your forum is great there are a lot of cool features :open_mouth:

You can get all these extensions from https://github.com/nodeloc .