Instructions for installing Tyk on Ubuntu 16.04 results in broken portal

Yes the domain regex is super strict in the UI, we need to fix that.

The way to manually change this is to use the Dashboard Admin API and modify the organisation object.

Here’s how you can do it with curl and jq:

#You can find the Org ID under Users -> Your User -> RPC Key
export MYORG=591ea6b10668f001852ae77a

# Get the object
curl -s -X GET \
    http://localhost:3000/admin/organisations/$MYORG\
    -H 'admin-auth: 12345'  > org.json

# Add the CNAME to the JSON
jq '.cname="mytestdomain.com"' org.json > org_fixed.json

# PUT it back
curl -X PUT \
    http://localhost:3000/admin/organisations/$MYORG\
    -H 'admin-auth: 12345' \
    -H 'content-type: application/json'\
    -d @org_fixed.json

# Restart the dashboard
sudo service tyk-dashboard restart