No worries!
I did some “code reading”. As mentioned over here , there is no explicit mechanism to directly load bundles from diskspace, but a caching mechanism is there, and we can utilize it. (the code works for v5.1.
The steps are as follows,
- find the md5sum of the
custom_middleware_bundle
name we have specified at app config. I used this handy commandprintf $(BUNDLE_NAME) | md5sum -z | cut -d ' ' -f 1
(replace the bundle name accordingly) - then create the bundle, and unzip it into
/opt/tyk/middleware/bundles/<md5sum of bundle name>/
- at the end make sure there is this files
/opt/tyk/middleware/bundles/<md5sum of bundle name>/manifest.json
and the remaining files from the bundle zip, at the destination.
NB: if you insist one can remove the bundling part with simply copying the source files and manifest.json over there.
Thank you!