4 ms·
Before I upload and download a file from a random Show HN with URLs like "secretpage-canneverbefound" and "very-secure-manifest-convert", I'd like to see some s
by jermaustin1 7y ago
Before I upload and download a file from a random Show HN with URLs like "secretpage-canneverbefound" and "very-secure-manifest-convert", I'd like to see some source code.
Typically with little projects like this it is customary to discuss how you built the application.
- slowenough 7y agoIt looks like the URLs named like that are trying to hack you and steal your secrets, I get that. The reason they're named that way is an artifact of how this was meant to be a private service to let a remote cloud browser view PDF (etc) files securely, without forcing the client to download them. So initially I didn't intend to make this public as its own service because the service was supposed to have only 1 customer (this other service). It wasn't easy at first, as ImageMagick took a long time to convert PDFs at 300 dpi, so I rebuilt it with multicore support, and still it took a long time. I eventually discovered a sweet spot at 100dpi. But aside from that I tried to keep it very simple, it's just some Node.JS and some shell scripts running on FreeBSD on digital ocean.