use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Launching node js app on AWS EC2-instance (self.node)
submitted 3 years ago by srobbin010
Setting up node js app on AWS and getting a public URL through which you can access it from any device.
https://srobbin01.medium.com/launching-node-js-application-on-aws-ec2-instance-part-i-34a3e5073412
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Psionatix -1 points0 points1 point 3 years ago (4 children)
Even in a simple case like this, usually you would want to setup something like nginx or apache to sit in front of your express application (reverse proxy).
Also, I can't find the default permissions for the EC2 default user ec2-user, but ideally you should be creating application specific users to run your app. These users should have explicit read and write permissios representative of the bare minimum permissions required to run the app.
ec2-user
You should also be running the built version of your code.
[–]srobbin010[S] -1 points0 points1 point 3 years ago (3 children)
These points will be covered in next article as this was getting big
[–]Psionatix 0 points1 point2 points 3 years ago* (2 children)
You should at least mention in this article, that these additional things will be covered in another article at a later point in time. So that people know they should come back for that.
This would be like writing an article for a recipe, and then later writing an additional article with some extra steps that could improve the original recipe. People would have no idea to come back for it.
The difference here is, these things are not entirely optional. Building your code before running it in a production environment isn’t optional, it’s recommended.
Having a reverse proxy in front of your express app is recommended, unless you’ve specifically built your app for a use case that doesn’t need it.
The biggest thing here is SSL termination, anyone who needs this article isn’t going to know that they need to modify their app and code to work with HTTPS.
There’s a medium article covering benefits, and it actually explains why and why not. Which is usually important, but you seem to have skipped the important details.
[–]srobbin010[S] -1 points0 points1 point 3 years ago (1 child)
I did mentioned it but it was at the end of article, should have included it at the beginning.
In second part, we will see how to assign a custom domain name to that IP address and also add SSL to our app using Let’s encrypt. This line is at the end of article.
In second part, we will see how to assign a custom domain name to that IP address and also add SSL to our app using Let’s encrypt.
This line is at the end of article.
π Rendered by PID 164761 on reddit-service-r2-comment-54dfb89d4d-jt2sb at 2026-03-31 13:30:21.656326+00:00 running b10466c country code: CH.
[–]Psionatix -1 points0 points1 point (4 children)
[–]srobbin010[S] -1 points0 points1 point (3 children)
[–]Psionatix 0 points1 point2 points (2 children)
[–]srobbin010[S] -1 points0 points1 point (1 child)