-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Weijun Lim
authored and
GitHub Enterprise
committed
Mar 16, 2025
1 parent
9e3ac9a
commit 8254819
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Production server configuration | ||
| server { | ||
| listen 80; | ||
|
|
||
| location / { | ||
| proxy_pass http://0.0.0.0:8080/; # Replace with actual service URL | ||
| proxy_set_header Host $http_host; | ||
| proxy_set_header X-Real-IP $remote_addr; | ||
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| } | ||
| } | ||
|
|
||
| # Development server configuration | ||
| server { | ||
| listen 8081; | ||
|
|
||
| location / { | ||
| proxy_pass http://0.0.0.0:8081/; # Replace with actual service URL | ||
| proxy_set_header Host $http_host; | ||
| proxy_set_header X-Real-IP $remote_addr; | ||
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| } | ||
| } | ||
|
|
||
| # Staging server configuration | ||
| server { | ||
| listen 8082; | ||
|
|
||
| location / { | ||
| proxy_pass http://0.0.0.0:8082/; # Replace with actual service URL | ||
| proxy_set_header Host $http_host; | ||
| proxy_set_header X-Real-IP $remote_addr; | ||
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| } | ||
| } |