This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| server { | |
| listen 80; | |
| server_name localhost; | |
| # Redirect all HTTP requests to HTTPS | |
| return 301 https://$host$request_uri; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file routes requests for app1.example.com, app2.example.com, and app3.example.com | |
| # to their corresponding backend services. | |
| # | |
| # Each application has two components: | |
| # 1. A web server for the user interface (e.g., a Node.js/Express app serving HTML/CSS/JS). | |
| # 2. A REST API server for data operations. | |
| # Defines settings for HTTP traffic. | |
| http { |
OlderNewer