Skip to content

Instantly share code, notes, and snippets.

@jonathanbernal25
Last active January 26, 2021 07:25
Show Gist options
  • Save jonathanbernal25/d99d284f2c669aa016f47a1ba2fea1f3 to your computer and use it in GitHub Desktop.
Save jonathanbernal25/d99d284f2c669aa016f47a1ba2fea1f3 to your computer and use it in GitHub Desktop.
How to configure Tyk Developer Portal from base installation.
  1. Set the Developer Portal listen path via: tyk_analytics.conf
"host_config": {
      "enable_host_names": true,
     "disable_org_slug_prefix": true,
     "hostname": "",
     "override_hostname": "xyz:8080",
     "portal_domains": {},
     "portal_root_path": "/portal",
     "generate_secure_paths": false,
     "use_strict_hostmatch": false
     },
  1. Create a portal homepage via the Tyk Dashboard.

  2. Set portal domain by configuring your system with host entries which point locally to the portal URL
    sudo vi /etc/hosts

  3. Set portal domain via Tyk Dashboard. Do NOT include the scheme.
    ✅ tyk.portal.com:3000
    ❌ http://tyk.portal.com:3000

  4. Restart tyk-dashboard service for changes to take effect.
    sudo service tyk-dashboard restart





NOTE: Portal will NOT work when accessing via IP address, you must use a hostname.
✅ tyk.portal.com:3000/portal
❌ 54.151.168.147:3000/portal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment