I have a Linux NodeJS/Express app that just exposes a text file to http://example.com/secret.txt and I would like to have only accessable over HTTPS on port 10000 and Basic Auth.
The secret.txt is not a file on the file system. It only exists in memory.
All this is easy to set up in Nginx, so the question becomes:
Question
Can Nginx be used to give my NodeJS/Express app HTTPS over port 10000 with Basic Auth?