m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.95k stars 449 forks source link

can I use CDN to speed up #349

Closed tanglu1323123 closed 7 months ago

tanglu1323123 commented 7 months ago

Hi, I want to use cdn(cdn support websocket) to hide my vps, which is running neko. But I failed, it shows disconnected connection timeout , I don't know why.

And I noticed that the video will use udp and the port default is '52000-52100' , it seems that the video can't be speed up by cdn .

tanglu1323123 commented 7 months ago

this is my docker compose yaml

version: "3.4"
services:
  neko:
    image: "m1k1o/neko:firefox"     
    restart: "unless-stopped"
    shm_size: "10gb"
    ports:
      - "8080:8080"     
      - "52000-52100:52000-52100/udp"
    environment:
      NEKO_SCREEN: 1920x1080@30 
      NEKO_PASSWORD: neko       
      NEKO_PASSWORD_ADMIN: admin    
      NEKO_EPR: 52000-52100
      NEKO_ICELITE: 1
tanglu1323123 commented 7 months ago

sorry, it's my problem. I forget enable the websocket 😅 It works well now via cdn