Linux

Where Does Tyk Gateway Store Config?

Tyk Gateway reads tyk.conf with APIs in app definitions plus Redis and Mongo. Restart the gateway after moving files.

Last updated

Tyk Gateway configures through a JSON conf file plus API definition files. State spreads across Redis and Mongo backends. Dashboard setups add their own database beside them.

Files suit single nodes and containers. Shared stores suit clusters. Keep conf, definitions and store endpoints matched when moving between hosts.

Where Tyk stores this, by platform

Linux
tyk.conf (definitions beside it, state in Redis and Mongo)

Main conf plus API definitions with Redis and Mongo state. Mount files in Docker. Restart after moving.

Frequently asked questions

How do I migrate Tyk to a new server?

Copy tyk.conf plus app definition files and point the new host at the same stores. Gateways share state through Redis and Mongo. Restart after moving.

Gateway ignores my config. Why?

Check the conf path passed on the command line first. Docker mounts override packaged defaults. Keep definition files beside the conf.

Notice an outdated path? Let us know.