You can set up the core settings for Tyk Gateway with a single setup script, however for more involved deployments, you will want to provide your own configuration file. To get things started, run:
sudo /opt/tyk-gateway/install/setup.sh --listenport=8080 --redishost=localhost --redisport=6379 --domain=""
What we’ve done here is told the setup script that:
--listenport=8080: Listen on port
8080for API traffic.
--redishost=localhost: Use the hostname
--redisport=6379: Use port
--domain="": Do not filter domains for the Gateway, see the note on domains below for more about this.
In this example, we don’t want Tyk to listen on a single domain, and we can always set up custom domains at the API level in the Dashboard. It is recommended to leave the Tyk Gateway domain unbounded for flexibility and ease of deployment.
The Tyk Gateway can be started now that it is configured. Use this commannd to start the Tyk Gateway:
sudo service tyk-gateway start