-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements #89
Comments
localtunnel is down, causing github actions to fail. I think we should find a better solution |
As per our docs https://transloadit.com/docs/ we could use ngrok which has a business (model) behind it, but allows limited free use(?) |
Turns out ngrok doesn't work for requests coming from services hosted on AWS, so we should update our docs at https://transloadit.com/docs/ also to instead use localtunnel or something else. Or maybe we can host our own similar tunnelling service (possibly with a whitelist from transloadit IP ranges). |
I like this idea.. It could maybe even work agnostically/transparently for a few SDKs if we build in support for that 🤔 (for now i am leaving a comment in our docs as well) |
so localtunnel seems to be down most of the time and causing a lot of failed builds recently. there's a myriad of different open source proxies we could set up and run, but we would have to set up and maintain a server. there's also cloudflare that seems to support this as a service. which solution should we go for? |
We could ask @calbrecht to set up an ngrok service on our us-east-1 observer on maybe? https://github.com/inconshreveable/ngrok/blob/master/docs/SELFHOSTING.md any security implications with that? we could host it on |
You know what, if Cloudflare can solve the problem immediately, let's use that first, and consider selfhosting an upgrade after that for which we can then reserve more time? |
I found something new called Cloudflare Quick Tunnels: |
Have now replaced localtunnel with cloudflare quick tunnels #143. The
After a lot of obscure issues I have finally managed to work this all out, so it works now! for those curious, the logic is in https://github.com/transloadit/node-sdk/blob/master/test/testserver.js and https://github.com/transloadit/node-sdk/blob/master/test/tunnel.js Note that when
So it's not for production, but for our tests it should work, unless they start blocking Github actions' IPs. If they do that, we can go ahead and setup the private tunnels instead, and that shouldn't be too much work because they also use the same |
Potential improvements discovered during #87 but not blocking its merge:
downloadResults: true
) forcreateAssembly
? I already created an example for this, but it could be a nice feature to be integrated in the API. Then we could even create a simple transloadit CLI that allows people to process local files using predefined templates for different useful operations!filename
andcontentType
of uploaded streams? See form-dataexamples/
any
fields in tsLogs / Global Event Emitter
Could allow the user subscribe to:
progressCb
add default console logger).Is this still needed now that we have the
debug
module for logging?If we decide to add an EventEmitter it could lead to breaking changes (e.g. removing onUploadProgress and onAssemblyProgress from method options and move them to event listener)
Tests improvements
Jest did not exit one second after the test run has completed
after test finished. I have worked around with --forceExit however this is not recommended.jest
automatically check types in the tests (instead of usingtsd
with a duplicated and incomplete type test file)The text was updated successfully, but these errors were encountered: