I am using the below repository to set up tyk open source gateway locally, but I am not getting connected with the node js rest API.
In addition, I have tested that the demo API is working fine according to this tutorial, but I am eager to test a simple RESTful application written in node js.
Below is the docker compose file I am using to setup the tyk open source gateway
The gateway debug logs at the time of the request If Redis connection is successful. You can get them from the container considering you are using Docker. You can enable debug logs from the environment variable
environment:
- TYK_LOGLEVEL=debug
Your config file and a snippet of how you are calling the API on the gateway
The gateway debug logs at the time of the request If Redis connection is successful. You can get them from the container considering you are using Docker. You can enable debug logs from the environment variable
That might work but I do not think it is necessary. I think the issue is with the gateway trying to communicate with your simple-api. You could swap your localhost address with the IP address of the host machine running the containers (can be a LAN IP of the machine). You could also replace it with the container name but I am not sure if it would work
Thank you so much @Olu for your response. Although I have run the application on a tunnel (with a public IP), I am not able to set it up without a public IP.
I have written this basic article to explain how to set up the open-source version from end to end.