Skip to content

Latest commit

 

History

History
116 lines (86 loc) · 3.35 KB

File metadata and controls

116 lines (86 loc) · 3.35 KB
# Upgrade Guide

This document provides instructions for upgrading WorkAdventure between versions.

## Upgrading from v1.27.2 to v1.27.3

### TURN Credentials Architecture Change (BREAKING CHANGE)

Version 1.27.3 introduces a significant architectural change in how TURN credentials are managed. The TURN credentials generation has been moved from the `back` service to the `play` service (pusher component).

#### Migration Steps

##### For Docker Compose Deployments

If you are using `contrib/docker/docker-compose.prod.yaml` or a similar Docker Compose setup:

1. **Locate your `TURN_STATIC_AUTH_SECRET` configuration**
   
   In your `.env` file or environment configuration, you should have:
   ```bash
   TURN_STATIC_AUTH_SECRET=your-secret-here
  1. Update your docker-compose configuration

    Before (v1.27.2 and earlier):

    services:
      play:
        environment:
          - TURN_SERVER
          - TURN_USER
          - TURN_PASSWORD
          # TURN_STATIC_AUTH_SECRET was NOT here
          - STUN_SERVER
      
      back:
        environment:
          - TURN_SERVER
          - TURN_USER
          - TURN_PASSWORD
          - TURN_STATIC_AUTH_SECRET  # ← Was configured here
          - STUN_SERVER

    After (v1.27.3 and later):

    services:
      play:
        environment:
          - TURN_SERVER
          - TURN_USER
          - TURN_PASSWORD
          - TURN_STATIC_AUTH_SECRET  # ← Now configured here
          - STUN_SERVER
      
      back:
        environment:
          - TURN_SERVER
          - TURN_USER
          - TURN_PASSWORD
          # TURN_STATIC_AUTH_SECRET removed from back
          - STUN_SERVER
  2. Keep your .env file unchanged

    Your .env file does not need to be modified. The TURN_STATIC_AUTH_SECRET value remains the same:

    TURN_STATIC_AUTH_SECRET=your-secret-here
  3. Restart your services

    After updating your docker-compose configuration:

    docker-compose down
    docker-compose up -d
For Kubernetes or Other Deployments

If you are using Kubernetes, Helm, or another deployment method:

  1. Remove TURN_STATIC_AUTH_SECRET from the back service

    • Remove the environment variable from your back service/deployment configuration
  2. Add TURN_STATIC_AUTH_SECRET to the play service

    • Add the environment variable to your play service/deployment configuration
    • Use the same secret value you were using previously
  3. Redeploy both services

    • Deploy the updated back service configuration
    • Deploy the updated play service configuration

Verification

After upgrading, verify that TURN credentials are working correctly:

  1. Open your WorkAdventure instance in a browser
  2. Join a room with another user
  3. Enable video/audio communication
  4. Check the browser console for any WebRTC-related errors
  5. Verify that peer-to-peer connections are established successfully

If you see errors related to TURN credentials or ICE servers, double-check that:

  • The TURN_STATIC_AUTH_SECRET is present in the play service environment
  • The TURN_SERVER configuration is correct
  • The play service has been restarted after the configuration change

Additional Information

For more details about this change, see: