Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
In Node, your app is the server. By default, it has no understanding of URL's, paths, etc. Putting a web server like nginx in front of it, while recommended, is not required. You use a framework like express to route the requests (URL paths) to your code, and your code can bring in templates if needed. Look at express and it'll start to make sense.
I've now got a setup using docker where the reverse proxy configuration is within the container's configuration (using nginx-proxy, which uses docker-gen). That way I just set the host, path, etc. in my container config, deploy, and the nginx servers are re-configured accordingly. No need to worry about ports and IPs then either.
I've now got a setup using docker where the reverse proxy configuration is within the container's configuration (using nginx-proxy, which uses docker-gen). That way I just set the host, path, etc. in my container config, deploy, and the nginx servers are re-configured accordingly. No need to worry about ports and IPs then either.
Related posts
- How to Deploy a Multi-Container React.js and Node.js Application With Docker Compose
- Generate types for TS
- Easiest solution for local deployment?
- How do you manage and maintain the order of your container ports? It's a bit of a mess on my personal server
- Open source vs. the emotional connection to your own project