Login 24/7 Support Community

Tyk Dashboard Configuration Options

The Tyk Dashboard has a separate configuration file, it is small and comes packaged with the tarball. It uses a separate configuration file as it may be installed on a different host to your Tyk Gateway nodes.

The Dashboard configuration file can be found in the tyk-dashboard folder and by default is called tyk_analytics.conf, though it can be renamed and specified using the --conf flag.

Environment Variables

Environment variables can be used to override the settings defined in the configuration file. See Environment Variables for details. Where an environment variable is specified, its value will take precedence over the value in the configuration file.

The file will look like the sample below, the various fields are explained in the following sections:

    "listen_port": 3000,
    "tyk_api_config": {
        "Host": "http://tyk-gateway",
        "Port": "8080",
        "Secret": "352d20ee67be67f6340b4c0605b044b7"
    "enable_ownership": false,
    "mongo_url": "mongodb://tyk-mongo:27017/tyk_analytics",
    "mongo_use_ssl": false,
    "mongo_ssl_insecure_skip_verify": false,
    "mongo_session_consistency": "",
    "mongo_batch_size": 2000,
    "page_size": 10,
    "admin_secret": "12345",
    "shared_node_secret": "352d20ee67be67f6340b4c0605b044b7",
    "redis_port": 6379,
    "redis_host": "tyk-redis",
    "redis_username": "",
    "redis_password": "",
    "redis_master_name": "",
    "redis_timeout": 0,
    "redis_database": 0,
    "enable_cluster": false,
    "redis_use_ssl": false,
    "redis_ssl_insecure_skip_verify": false,
    "force_api_defaults": false,
    "notify_on_change": true,
    "license_key": "",
    "redis_hosts": null,
    "redis_addrs": null,
    "hash_keys": true,
    "email_backend": {
        "enable_email_notifications": false,
        "code": "sendgrid",
        "settings": {
            "ClientKey": ""
        "default_from_email": "[email protected]",
        "default_from_name": "Some Person",
        "dashboard_hostname": ""
    "hide_listen_path": false,
    "sentry_code": "",
    "sentry_js_code": "",
    "use_sentry": false,
    "enable_master_keys": false,
    "enable_duplicate_slugs": true,
    "show_org_id": true,
    "host_config": {
        "enable_host_names": true,
        "disable_org_slug_prefix": true,
        "hostname": "www.tyk-test.com",
        "override_hostname": "www.tyk-test.com:8080",
        "portal_domains": {},
        "portal_root_path": "/portal",
        "generate_secure_paths": false,
        "secure_cookies": false,
        "use_strict_hostmatch": false
    "http_server_options": {
        "use_ssl": false,
        "certificates": [],
        "min_version": 0,
        "ssl_ciphers": null,
        "ssl_insecure_skip_verify": false,
        "prefer_server_ciphers": false
    "security": {
        "allow_admin_reset_password": false,
        "login_failure_username_limit": 0,
        "login_failure_ip_limit": 0,
        "login_failure_expiration": 0,
        "login_disallow_forward_proxy": false,
        "audit_log_path": "",
        "user_password_max_days": 0,
        "enforce_password_history": 0,
        "force_first_login_pw_reset": false,
        "enable_content_security_policy": false,
        "allowed_content_sources": ""
    "ui": {
        "languages": {
            "Chinese": "cn",
            "English": "en",
            "Korean": "ko"
        "hide_help": true,
        "default_lang": "en",
        "login_page": {},
        "nav": {
            "dont_show_admin_sockets": false,
            "hide_activity_by_api_section": false,
            "hide_geo": false,
            "hide_licenses_section": false,
            "hide_logs": false,
            "hide_tib_section": false
        "uptime": {},
        "portal_section": null,
        "designer": {},
        "dont_show_admin_sockets": false,
        "dont_allow_license_management": false,
        "dont_allow_license_management_view": false,
        "cloud": false
    "home_dir": "/opt/tyk-dashboard",
    "identity_broker": {
        "enabled": false,
        "host": {
            "connection_string": "",
            "secret": ""
    "tagging_options": {
        "tag_all_apis_by_org": false
    "use_sharded_analytics": true,
    "enable_aggregate_lookups": true,
    "enable_analytics_cache": false,
    "aggregate_lookup_cutoff": "26/05/2016",
    "maintenance_mode": false,
    "allow_explicit_policy_id": true,
    "private_key_path": "",
    "node_schema_path": "",
    "oauth_redirect_uri_separator": ";",
    "statsd_connection_string": "",
    "statsd_prefix": "",
    "disable_parallel_sessions": false,
    "dashboard_session_lifetime": 0,
    "alternative_dashboard_url": "",
    "sso_permission_defaults": null,
    "sso_default_group_id": "",
    "sso_custom_login_url": "",
    "sso_custom_portal_login_url": "",
    "sso_enable_user_lookup": false,
    "notifications_listen_port": 5000,
    "portal_session_lifetime": 0,
    "enable_delete_key_by_hash": false,
    "enable_update_key_by_hash": false,
    "audit": {
        "enabled": false,
        "format": "",
        "path": "",
        "detailed_recording": false
    "enable_multi_org_users": false,
    "version_check_url": ""


Setting this value will change the port that Tyk Dashboard listens on. By default Tyk will try to listen on port 3000.

NOTE: You may see net::ERR_CONNECTION_REFUSED errors in the browser console if you don’t have port 5000 open. See Port 5000 Errors in the Browser Console. Port 5000 is no longer required from v2.9.3.


This section contains details for a Tyk Gateway node that the Tyk Dashboard can speak to. The Dashboard controls Tyk using the Gateway API and only requires visibility to one node, so long as all nodes are using the same API Definitions.


If the Dashboard cannot see a Tyk node, key management functions will not work properly.


In a sharded environment, the Gateway node specified in tyk_api_config must not be sharded.


This is the full URL of your Tyk node.


he port that Tyk is running on. The default is 8080.


The secret set in your tyk.conf file. This is the key that Tyk Dashboard will use to speak to the Tyk node’s Gateway API. Note that this value has to match the secret value in tyk.conf.


As of Tyk Gateway v2.0 and Tyk Dashboard v1.0 all Tyk API Gateway nodes that are configured to use the Dashboard as a back-end API Definition service (i.e. are managed by a Dashboard) will register with the Dashboard service on load, and claim a node ID that is provided by the license for the Dashboard.


This value should match with the node_secret Gateway configuration option value.

Each node communicates with the Dashboard via a shared secret (this setting) and a nonce to ensure that out-of-band requests cannot be made. Nodes will send a heartbeat every few seconds to notify the Dashboard that they are running.


This secret is to be used by a special set of endpoints that we call “Admin APIs”. This API is part of the super-admin context and therefore has a separate endpoint prefix /admin. It also requires a special auth header called admin-auth. This purpose of these endpoints is to allow functionality that regular Dashboard users should not have, such as create new organisations, create super users etc. See the Admin API for more information on these endpoints.


The full URL to your MongoDB instance, this can be a clustered instance if necessary and should include the database and username / password data.


This should be the same as the credentials that your Tyk installation uses.


This setting allows the use of self-signed certificates when connecting to an encrypted MongoDB database.


A Boolean setting for Mongo SSL support. Set to true to enable SSL.


Sets the batch size for mongo results. Defaults to 2000. Increasing this number can decrease dashboard performance. This value cannot be lower than 100 and will fallback to 100 if a lower value has been set.


The page size that the dashboard should use. Defaults to 10. This setting should not be edited.


The port that your Redis installation listens on.


The Tyk Dashboard uses Redis to store its session data and to communicate with your Tyk Gateway nodes occasionally. The Redis details used by the dashboard must be the same as those set for your Tyk installation.


The hostname for the Redis collection and can be an IP address.


If you are using Redis AUTH using its requirepass setting, enter your username here (recommended). If this is not used, the Dashboard will not attempt to login to Redis.


The password for your Redis Auth username.


Set this to the index of your Redis database if you are using more than one.


Set a custom Redis network timeout. Default value is 5 seconds.


Set this to true if you are using a Redis cluster.



From v1.9.3 redis_hosts has been deprecated and replaced by redis_addrs

You can also specify multiple Redis hosts here. Tyk will use this array if it is not empty, or it will use the individual legacy parameters above. You can specify multiple host:port combinations here.


This is new from v1.9.3 and replaces redis_hosts for configuring Redis clusters. See Redis Cluster and Tyk Dashboard for more info.


This setting forces the Dashboard to use certain defaults when generating API definitions. Set this to false if you wish to manually set listen_paths.


Licensed users can use this setting to enable/disable whether the Tyk Dashboard will notify all Tyk Gateway nodes to hot-reload when an API definition is changed.


If your Tyk Gateway is using hashed keys, set this value to true so it matches. The Dashboard will now operate in a mode that is compatible with key hashing.


To delete a key by its hash, set this option to true.


To update a key by its hash, set this option to true.


If this is set to true, session objects (key definitions) that do not have explicit access rights set will be allowed by Tyk. This means that keys that are created have access to ALL APIs, which in many cases is unwanted behaviour unless you are sure about what you are doing. To use this setting also requires the corresponding Gateway configuration setting allow_master_keys to be set to true.


Tyk supports an interface-based email back-end system. We support mandrill, sendgrid, amazonses and mailgun. See Outbound Email Configuration for more details on configuring these different providers.


Set to true to have Tyk send emails for things such as key approvals and portal sign ups.


The code of the back-end to use, mandrill, sendgrid, amazonses and mailgun are supported. See Outbound Email Configuration for more details on configuring these different providers.


The custom settings sections for the back end system.


The client key that we can use to integrate with the Mandrill API.


The address to send email from.


The name to use when sending emails.


Your public dashboard hostname.


dashboard_domain is available from v1.3.6 onwards.


If you set this option to true, then the listen path will not be editable or visible in the Dashboard.


The Tyk Dashboard has Sentry integration to externalise logging. Set this to true to enable the logger.


If you have a Sentry setup, or are using Getsentry, you can add the Sentry DSN here and Tyk will begin sending events.


The Angular application that powers the Dashboard also supports Sentry. To have the Dashboard report errors to you, add a seperate DSN here.


Determines whether the RPC ID will be shown in the Users -> Username detail page. This can be useful for quickly identifying your Org ID.


By default Tyk will try to stop you from using duplicate API slugs. However, from v1.9 Tyk supports per-API domain names, it is possible to have two APIs listen to the same path (e.g. root /), but on different domains.

Setting this option to true will cause the dashboard to not validate against other listen paths.


The host config section replaces the old hostname option in the tyk_analytics.conf as we have more options around managing host names and domains in this version.


This is the equivalent of v1.8 hostname parameter, and will essentially stop Tyk from trying to guess which hostname to use when building URLs for the interface. Set this value to whatever hostname your Tyk Gateway is running on.


Tyk will by default try to manage domain names based on the organisation slug, so domains are like this if using the Host Manager:


However, if you are not using the host manager, then domains are hard-coded per API, or at a Gateway level, and the org-slug moniker is not needed to construct demo URLs (e.g. for Swagger docs and the API pages). To stop this guessing behaviour, change this option to true and the Dashboard will stop trying to add an org-slug to the start of URLs.

For legacy installs or upgrades using the host manager, leave this value as false.


The Tyk Dashboard can bind the Dashboard application to a specific domain name. Enable this option to have the Dashboard only allow access on a specific domain and 404 on any other host access (not recommended).


The hostname to bind the Dashboard to. This must be a proper hostname and not localhost.


It is possible to hard-code portal domains (these override settings set by the Dashboard for routing purposes). Set Domainname:ORGID here so that Tyk can route domain names for the portals of those organisations.


The root path for the portal.


If you prefer to have your URLs start with https, set this option to true.


This enables HTTPS “secure” cookies.


This section is reserved for settings relating to the HTTP server that powers the Dashboard.


Enable to use SSL.


Add a certificate block for each domain being covered by the application. For example:

  "domain_name": "*.banana.com",
  "cert_file": "new.cert.cert",
  "key_file": "new.cert.key"


Array of allowed cipher suites as defined at https://golang.org/pkg/crypto/tls/#pkg-constants


A boolean value to control whether the server selects the preferred ciphersuite for the client, or the preferred ciphersuite for the server. If set to true, the server preferences in the order of the elements listed in ssl_ciphers is used.

For more information see TLS and SSL


This section controls login limits for both the Dashboard and the Developer Portal. The path for you audit log is also set here.


Controls how many time a user can attempt to log in before being denied access. The default is 0.


Controls how many times an IP Address can be used to attempt to log in before being denied access. The default is 0.


Controls how long before the failure limits are reset in seconds. The default is 900 seconds.


Set to true to allow the Tyk Dashboard login to ignore the host from the X-Forwarded-For header when accessing the Dashboard via a proxy. This can be useful for limiting retry attempts.


This sets the path to your audit log and enables audit with default settings. It will log all user actions and response statuses to it. Security information such as passwords are not logged.


This allows an admin user to reset the password of other users. The default is false.


Enable browser Content-Security-Policy, e.g. CSP. The default is false.


If CSP enabled, specify space separated string, with list of allowed resources.


Set the maximum lifetime of a password for a user. They will be prompted to reset if password lifetime exceeds the configured expiry value. e.g. if value set to 30 any user password set over 30 days in past will be considered invalid and must be reset.


Set a maximum number of previous passwords used by a user that cannot be reused. For example, If set to 5 the user upon setting their password cannot reuse any of their 5 most recently used password for that Tyk user account.


A newly created user will be forced to reset their password upon first login. Defaults to false.


This section controls various settings for the look and feel of the Dashboard UI.


This section lists the current languages the Dashboard UI supports.


Set to true to hide the help tips.


This settings sets the default language for the UI. Default setting is en. Can be set to any of the other languages listed under ui.languages.

Tyk Internal Cloud Settings

The following settings are used internally by Tyk for our Cloud product, and cannot be configured.

"login_page": {},
        "nav": {
            "dont_show_admin_sockets": false,
            "hide_activity_by_api_section": false,
            "hide_geo": false,
            "hide_licenses_section": false,
            "hide_logs": false,
            "hide_tib_section": false
        "uptime": {},
        "portal_section": null,
        "designer": {},
        "dont_show_admin_sockets": false,
        "dont_allow_license_management": false,
        "dont_allow_license_management_view": false,
        "cloud": false


"version_check_url": ""


The path to the home directory of Tyk Dashboard, this must be set in order for Portal templates and other files to be loadable. By default this is /opt/tyk-dashboard/.



As of v1.5, you can set portal session life time in seconds.


Tyk Dashboard has some preset Tyk Identity Broker configurations set up, for this integration to work, the Dashboard must be able to see an Identity Broker instance. The settings in this section are to enable this integration.


A boolean setting to enable the TIB integration (otherwise it will not appear in the UI).


This section defines the host connection details for TIB.


The URL to the host. It must be in the form: http://domain:port.


The shared secret between TIB and the Dashboard. This ensures all API requests between Dashboard and TIB are valid.


By default in a Pro installation, Tyk will load Policy IDs and use the internal object-ID as the ID of the policy. This is not portable in cases where the data needs to be moved from installation to installation.

If you set this value to true, then the id parameter in a stored policy (or imported policy using the REST API of the Dashboard) will be used instead of the internal ID.


This option should only be used when transporting an installation to a new database.


If using the mongo-pump-selective pump, where data is written to org-id-specific collections in MongoDB, then enabling this option will switch querying for analytics over to the independent collection entries.


If using the new Aggregate Pump, Tyk Analytics can make use of the newer, faster Analytics lookup, to ensure that this can be made backwards compatible. This option must be set to true, in conjunction with the aggregate_lookup_cutoff value.


Set this to a date value of the form DD/MM/YYYY. Any analytics queries before this date will fall back to the raw base log data collection (slower). This is to ensure continuity of service and a smooth upgrade process with no loss of data.


If set to true, it restricts an account to a single session. When an account logs in, any other open sessions for that account are logged out.


Specify permissions of the user who logged in using Admin SSO API (for example Tyk Identity Broker). See Dashboard Admin SSO API for more details.


Specify a custom dashboard login URL if you are using 3rd party authentication like TIB.


Specify custom portal login URL if you are using 3rd party authentication like TIB.


As of v1.8, this setting enables the ability to share users across multiple organisations in a Tyk Dashboard Installation (Note: requires > 2 node licence).


This section specifies settings for audit logging. All Dashboard API requests with URI starting with /api will be logged in audit log.


Enables audit logging, set to false by default. NOTE: setting value security.audit_log_path has the same effect as setting enabled to true.


Specifies the format of audit log file, possible values are json and text (text is default value).


Specifies the path to file for the audit log, and overwrites the security.audit_log_path value if it was set.


Enables detailed records in audit log, by defaultt set to false. If set to true then audit log records will contain HTTP request (without body) and full HTTP response (including body).

Audit record fields for json format:

  • req_id - unique request ID

  • org_id - organization ID

  • date - date in RFC1123 format

  • timestamp - unix timestamp

  • ip - IP address the request was originating from

  • user - dashboard user who performed the request

  • action - description of action performed (i.e. Update User`)

  • method - HTTP-method of the request

  • url - URL of the request

  • status - HTTP response status of the request

  • diff - provides diff of changed fields (available only for PUT requests)

  • request_dump - HTTP request copy (available if audit.detailed_recording is set to true)

  • response_dump - HTTP response copy (available if audit.detailed_recording is set to true)

Audit record fields for text format - all fields are in plain text separated with new line and provided in the same order as fields for json format.


Set to true to create users in different organisations, using the same email address. Users will then be able to select an organisation when logging in, and can easily switch between organisations via the navigation menu.


This is only available for clients with a two node or more Tyk Dashboard licence.