Tyk Gateway - Open Source v5.7+
Tyk Gateway Open Source Configuration File
| Type | object |
|---|---|
| File match |
tyk.conf
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/tyk-gateway-open-source-v5-7/latest.json |
| Source | https://raw.githubusercontent.com/TykTechnologies/tyk-schemas/refs/heads/main/JSON/draft-07/schema_tyk.oss.conf |
Validate with Lintel
npx @lintel/lintel check
Schema that describes the config file of OSS tyk gateway.
Properties
An explanation about the purpose of this instance.
Configuration field as API key for the Tyk Gateway API. It should be passed along as the `X-Tyk-Authorization header in any requests made.
For licensed users this needs to be true. False means it's not using a DB to load the configurations.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
{}
8 nested properties
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
Only single-node and failover clients.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
Tell the gateway where to pick the policies from.
{
"policy_source": "file",
"policy_record_name": "/opt/tyk-gateway/policies/policies.json"
}
3 nested properties
Set to file to load policies file from the file system. Set to service to use the Dashboard service.
This option is required if policies.policy_source is set to file.
This option is required if policies.policy_source is set to file.
Configuration field to control the gateway logging level.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
analytics_config contains setting for analytics captured by the gateway
{
"type": "",
"purge_interval": 10,
"enable_detailed_recording": false
}
4 nested properties
For OSS gateway use an empty string.
Set the interval length on how often the tyk Gateway will purge analytics data. This value is in seconds and defaults to 10 seconds.
An explanation about the purpose of this instance.
[]
Set this value to true to have Tyk store the inbound request and outbound response data in HTTP Wire format as part of the Analytics data. Please note, this will greatly increase your analytics DB size and can cause performance degradation on analytics processing by the Dashboard. This setting can be overridden with an organisation flag, enabed at an API level, or on individual Key level.
An explanation about the purpose of this instance.
{
"enable_health_checks": false
}
2 nested properties
An explanation about the purpose of this instance.
health_check_value_timeouts is deprecated!
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
True value will use the hashed value of the key as the key in Redis.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
{}
1 nested properties
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
{}
2 nested properties
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
An explanation about the purpose of this instance.
Examples
{
"_description": "Config example with JSVM enabled",
"listen_port": 8080,
"log_level": "info",
"secret": "foo",
"use_db_app_configs": false,
"app_path": "/opt/tyk-gateway/apps/",
"storage": {
"type": "redis",
"host": "tyk-redis",
"port": 6379
},
"policies": {
"policy_source": "file",
"policy_record_name": "/opt/tyk-gateway/policies/policies.json"
},
"enable_analytics": false,
"analytics_config": {
"type": ""
},
"allow_insecure_configs": true,
"hash_keys": true,
"enable_hashed_keys_listing": true,
"global_session_lifetime": 100,
"enable_jsvm": true,
"enable_bundle_downloader": true,
"bundle_base_url": "",
"tyk_js_path": "/opt/tyk-gateway/js/tyk.js",
"middleware_path": "/opt/tyk-gateway/middleware"
}