Skip to content

Commit

Permalink
Create nginx_securefit.conf
Browse files Browse the repository at this point in the history
  • 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.
35 changes: 35 additions & 0 deletions nginx_securefit.conf
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;
}
}

0 comments on commit 8254819

Please sign in to comment.