huly-selfhost icon indicating copy to clipboard operation
huly-selfhost copied to clipboard

video/audio chat is not working on selfhosted with traefik

Open deviljutt opened this issue 1 year ago • 14 comments

traefik/template-compose.yaml

i am using traefik to start the self hosted server i don't see voice chat icon on top. can anyone confirm if this issue is there ?

image

docker-compose.txt

deviljutt avatar Sep 20 '24 11:09 deviljutt

Hey! Default configuration does not contain office voice/video calls. Video chats are based on LiveKit so if you LiveKit Cloud account, you can set up the calls.

aonnikov avatar Sep 20 '24 15:09 aonnikov

@aonnikov, how can I setup the livekit account with self host nginx?

saif-malik-01 avatar Oct 01 '24 12:10 saif-malik-01

@aonnikov, how can I setup the livekit account with self host nginx?

@saif-malik-01 we are using Livekit Cloud, you will need to setup love container:

love:
    image: hardcoreeng/love:${HULY_VERSION}
    links:
      - mongodb
      - minio
    ports:
      - 8096:8096
    environment:
      - PORT=8096
      - SECRET=${HULY_SECRET}
      - ACCOUNTS_URL=http://${SERVER_ADDRESS}:3000
      - MONGO_URL=mongodb://mongodb:27017
      - STORAGE_CONFIG=minio|minio?accessKey=minioadmin&secretKey=minioadmin
      - LIVEKIT_HOST=...
      - LIVEKIT_API_KEY=...
      - LIVEKIT_API_SECRET=...
    restart: unless-stopped

and in the front service you will need to add couple of env variables:

    - LIVEKIT_WS=...
    - LOVE_ENDPOINT=http://love:8096

The last three variables you can obtain in your Livekit Cloud account once you set it up.

aonnikov avatar Oct 02 '24 10:10 aonnikov

@aonnikov Thanks for your reply but while creating workspace it is get stucked and throughing agetWorkspaceInfo account request in infinite loop .... working fine without traefik on http

I'm using a GCP instance

image

saif-malik-01 avatar Oct 03 '24 12:10 saif-malik-01

@deviljutt How you deployed the project, can you let me know?

saif-malik-01 avatar Oct 03 '24 14:10 saif-malik-01

@saif-malik-01 what version do you use? We have known issue that have been fixed in recent versions. It should also help if you restart workspace container

aonnikov avatar Oct 03 '24 15:10 aonnikov

@aonnikov I'm using latest one, also I'm have assigned a hostinger domain to external ip of gcp instance still it is not working, I added a A type record.

saif-malik-01 avatar Oct 03 '24 17:10 saif-malik-01

@aonnikov I see template-compose.yaml of traefik does not have workspace, can you tell me how to add ?

saif-malik-01 avatar Oct 03 '24 18:10 saif-malik-01

@saif-malik-01 Traefik example was added by someone from community, and I never tried it by myself. I will review and update it.

aonnikov avatar Oct 04 '24 04:10 aonnikov

@aonnikov , can share any solution ?

saif-malik-01 avatar Oct 10 '24 11:10 saif-malik-01

@aonnikov , can share any solution ?

@saif-malik-01 check out this pull request, it adds workspace service and update configuration to Huly v313: https://github.com/hcengineering/huly-selfhost/pull/64

aonnikov avatar Oct 14 '24 05:10 aonnikov

Hey, love is set up, but when I add the LOVE_ENDPOINT, it makes that request using my browser (checked via network tab) instead of locally in the container. This makes it not work and when I would use HTTP, the request would be blocked (which is intended behavior) and I can't use HTTPS with it and overall I think it's probably a bad idea to expose it to the internet anyway. Arc_7XfebbE2qS

Also while we're at it (unrelated to the issue above), what exactly should I put into Livekit Host? Just livekit.cloud for their hosted option?

Pukimaa avatar Oct 14 '24 20:10 Pukimaa

@Pukimaa On livekit go to settings, keys tab, click on your key. On the popup you will see all the info you need. For the host, omit the wss:// and you are done. As for exposing the service, I'm not sure. This is a service architecture. If we had some service to route through a proxy all the calls, that would work, but it's not implemented at this time (@aonnikov maybe an idea for the future?). For now, to make use of the functionality, the client has to make the calls to the love service.

@aonnikov it would be amazing if all the info about the love container, the extra env vars for front service and livekit (selfhosted or cloud) were available in the docs

daidonpah avatar Oct 18 '24 02:10 daidonpah

@daidonpah now it is in the readme: https://github.com/hcengineering/huly-selfhost?tab=readme-ov-file#love-service-audio--video-calls

aonnikov avatar Oct 18 '24 04:10 aonnikov