Thanks Martin. I am still not able to get it working. I did the following
- Created a bundle.zip using tyk-cli with -y option
- Put the bunde.zip in /vagrant folder in my vagrant box
- Started a simple golang rest server that serves file using below go code
- Added following entries in tyk.conf and restarted tyk-gateway
“enable_bundle_downloader”: true,
“bundle_base_url”: “http://127.0.0.1:10080/”, - Added following entry in api definition
“custom_middleware_bundle”: “bundle”,
I dont see any prints in tyk-gateway.log related to loading of bundle or any errors and plugin isnt getting invoked either. What did I miss?
package main
import (
“log”
“net/http”
)
func main() {
// Simple static webserver:
log.Fatal(http.ListenAndServe(“:10080”, http.FileServer(http.Dir(“/vagrant”))))
}