Hubs by Mozilla

Hubs by Mozilla

  • Docs
  • GitHub
  • Help

›Setting Up Your Hub

Introduction

  • Welcome
  • Getting Started With Hubs
  • Building Scenes with Spoke
  • Creating Custom Avatars
  • Hosting Events in Hubs

Setting Up Your Hub

  • Choosing A Subscription
  • Creating Your Hub
  • Updating/Cancelling Your Subscription
  • Managing Your Hub's Content
  • Custom Domains (Pro Plan)
  • Custom Clients (Pro Plan)
  • Frequently Asked Questions
  • Contact Us
  • Learning More About Hubs

Hubs Fundamentals

  • Create and Join Rooms
  • Hubs Features
  • Sharing Avatar Links Privately
  • User Settings
  • Room Settings
  • Controls
  • Discord Bot
  • Troubleshooting
  • FAQ

Spoke Documentation

  • Create Project
  • User Interface
  • Spoke Controls
  • Adding Content
  • Architecture Kit
  • Grid
  • Skyboxes
  • Lighting and Shadows
  • Physics and Navigation
  • Publish Scenes

For Creators

  • Advanced Avatar Customization
  • Linking Hubs Rooms
  • Using the Blender glTF Exporter
  • Blender Add-on Components
  • Optimizing Scenes

For Developers

  • System Overview
  • Build a Custom Client
  • Contributing
  • Hubs Query String Parameters

Hubs Client development

  • Hubs Client development Basics
  • Core Concepts for Gameplay Code
  • Hubs Client development Interactivity
  • Hubs Client development Networking

Hubs Cloud

  • Introduction
  • Getting Started
  • FAQ
  • Importing Content
  • Asset Packs
  • Customizing Look & Feel
  • Customizing Themes
  • Managing Content
  • Adding Administrators
  • Limiting Access
  • Recipe: Permissive Rooms
  • Recipe: 3rd Party Integrations
  • Recipe: Enable Scene Editor
  • Recipe: Custom SMTP
  • Recipe: Discord Bot
  • Advanced: SSH Access
  • Advanced: Content CDN
  • Custom Clients
  • Advanced: Brand Guidelines

Hubs Cloud AWS

  • AWS Quick Start
  • Domain Recipes
  • Using an Existing Domain
  • Using an Existing Email Provider
  • Updating the Stack
  • Backup and Restore
  • AWS Troubleshooting
  • Known Issues
  • System Architecture
  • Costs and Minimizing Costs Information
  • Estimating Cost Charts (Alpha)
  • Estimating CCU Limits

Hubs Cloud DigitalOcean

  • DigitalOcean Quick Start
Edit

Custom Domains (Pro Plan)

This guide walks you through the steps of adding, updating, and removing a custom domain on your Hub. This feature is available on Professional plans.

Table of Contents
      Introduction
      Part A: Prepare Your Custom Domain
      Part B: Locate Your turkeyauthtoken
      Part C: Connect Your Custom Domain
      Updating Your Custom Domain
      Removing Your Custom Domain


Introduction

Custom domains allow Professional Plan subscribers to improve the branding, analytics collection, and search optimization of their Hub. Be advised that, once connected, old room and scene urls may be inaccessisble.

If you need more assistance, we recommend following along with our Custom Domain Tutorial Video.

Part A: Prepare Your Custom Domain

The custom domain preparation process will vary depending on the type of domain and hosting service you are using. We will update our documentation as we test the differences between services and domain types.

With a CNAME Record
The easiest method to connect a custom domain to your Hub is to create a cname record to point to lb.us1.myhubs.net. Before connecting the custom domain, you must register a cname record through your desired custom domain’s registrar, such as GoDaddy or Route53 (AWS), to point to lb.us1.myhubs.net. We have documented this process using Route53 in our tutorial video.

Part B: Locate Your turkeyauthtoken

  1. Open the developer tools in the subscription dashboard and navigate to the “Console” tab.

  2. Run the following code in the console to get your token: console.log(RegExp("_turkeyauthtoken"+"=[^;]+").exec(document.cookie)[0].slice(17))

  3. Copy the long string of characters to be used in Part C. Please note that turkeyauthtokens are only valid for 12 hours.

Part C: Connect Your Custom Domain

  1. Open a command terminal on your device and run the following command with the 3 parameters surrounded by < > replaced with your specific information from previous steps:
    curl -X PATCH -H "turkeyauthtoken:<token-value-from-part-b>" 'https://<your-hubs-native-domain>/api/ita/custom-domain?to_domain=<desired-custom-domain>'

  2. The command should execute quickly and return the following message:
    done: [<your-hubs-native-domain>] -> [<desired-custom-domain>]
    It will generally take a couple of minutes for the custom domain to be properly configured on the backend.

Updating Your Custom Domain

  1. In a command terminal on your device, run the following command with the 4 parameters surrounded by < > replaced with your specific information from previous steps:
    curl -X PATCH -H "turkeyauthtoken:<token-value-from-part-b>" 'https://<your-hubs-native-domain>/api/ita/custom-domain?from_domain=<current-custom-domain>&to_domain=<desired-custom-domain>'

    ^ Note how we have added the from_domain parameter to this command ^

  2. The command should execute quickly and return the following message:
    done: [<current-custom-domain>] -> [<desired-custom-domain>]
    It will generally take a couple of minutes for the custom domain to be properly configured on the backend.

Removing Your Custom Domain

  1. In a command terminal on your device, run the following command with the 3 parameters surrounded by < > replaced with your specific information from previous steps:
    curl -X PATCH -H "turkeyauthtoken:<token-value-from-part-b>" 'https://<your-hubs-native-domain>/api/ita/custom-domain?from_domain=<current-custom-domain>&to_domain='

    ^ Note how we have left the to_domain parameter empty in this command ^

  2. The command should execute quickly and return the following message:
    done: [<current-custom-domain>] -> []
    It will generally take a couple of minutes for the custom domain to be properly configured on the backend.

← Managing Your Hub's ContentCustom Clients (Pro Plan) →
  • Introduction
  • Part A: Prepare Your Custom Domain
  • Part B: Locate Your turkeyauthtoken
  • Part C: Connect Your Custom Domain
  • Updating Your Custom Domain
  • Removing Your Custom Domain
Hubs by Mozilla
Docs
IntroductionSetting Up Your HubHubs FundamentalsSpoke DocumentationFor CreatorsFor DevelopersHubs Cloud
Community
Discord ChatTwitter
More
HubsSpokeGitHub
Copyright © 2023 Mozilla Corporation. Hubs Documentation available under the Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.