Skip to content

Commit e261eea

Browse files
authored
Merge pull request #5 from aarora79/dheeraj-work
Implement file logging and fix dynamic Nginx config for Docker
2 parents fa932b8 + fe1c708 commit e261eea

File tree

2 files changed

+380
-257
lines changed

2 files changed

+380
-257
lines changed

docker/nginx_rev_proxy.conf

Lines changed: 74 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,45 @@ server {
1212
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
1313
}
1414

15-
location /mcpgw/ {
16-
proxy_pass http://127.0.0.1:8003/;
17-
proxy_http_version 1.1;
18-
proxy_set_header Host $host;
19-
proxy_set_header X-Real-IP $remote_addr;
20-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
21-
}
15+
# REMOVE HARDCODED /mcpgw
16+
# location /mcpgw/ {
17+
# proxy_pass http://127.0.0.1:8003/;
18+
# proxy_http_version 1.1;
19+
# proxy_set_header Host $host;
20+
# proxy_set_header X-Real-IP $remote_addr;
21+
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
22+
# }
2223

23-
# Route for Current Time service
24-
location /currenttime/ {
25-
proxy_pass http://127.0.0.1:8001/;
26-
proxy_http_version 1.1;
27-
proxy_set_header Host $host;
28-
proxy_set_header X-Real-IP $remote_addr;
29-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
30-
}
24+
# REMOVE HARDCODED /currenttime
25+
# location /currenttime/ {
26+
# proxy_pass http://127.0.0.1:8001/;
27+
# proxy_http_version 1.1;
28+
# proxy_set_header Host $host;
29+
# proxy_set_header X-Real-IP $remote_addr;
30+
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
31+
# }
3132

32-
# Route for Financial Information service
33-
location /fininfo/ {
34-
proxy_pass http://127.0.0.1:8002/;
35-
proxy_http_version 1.1;
36-
proxy_set_header Host $host;
37-
proxy_set_header X-Real-IP $remote_addr;
38-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
39-
40-
# Additional settings for SSE support
41-
proxy_set_header Connection '';
42-
chunked_transfer_encoding off;
43-
proxy_buffering off;
44-
proxy_cache off;
45-
proxy_read_timeout 3600s;
46-
}
33+
# REMOVE HARDCODED /fininfo
34+
# location /fininfo/ {
35+
# proxy_pass http://127.0.0.1:8002/;
36+
# proxy_http_version 1.1;
37+
# proxy_set_header Host $host;
38+
# proxy_set_header X-Real-IP $remote_addr;
39+
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
40+
#
41+
# # Additional settings for SSE support
42+
# proxy_set_header Connection '';
43+
# chunked_transfer_encoding off;
44+
# proxy_buffering off;
45+
# proxy_cache off;
46+
# proxy_read_timeout 3600s;
47+
# }
48+
49+
# --- ADD DYNAMIC MARKERS --- START
50+
# DYNAMIC_LOCATIONS_START
51+
52+
# DYNAMIC_LOCATIONS_END
53+
# --- ADD DYNAMIC MARKERS --- END
4754

4855
location /tsbedrock/ {
4956
# Fix the path handling by adding trailing slash and using $request_uri
@@ -91,36 +98,45 @@ server {
9198
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
9299
}
93100

94-
location /mcpgw/ {
95-
proxy_pass http://127.0.0.1:8003/;
96-
proxy_http_version 1.1;
97-
proxy_set_header Host $host;
98-
proxy_set_header X-Real-IP $remote_addr;
99-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
100-
}
101+
# REMOVE HARDCODED /mcpgw
102+
# location /mcpgw/ {
103+
# proxy_pass http://127.0.0.1:8003/;
104+
# proxy_http_version 1.1;
105+
# proxy_set_header Host $host;
106+
# proxy_set_header X-Real-IP $remote_addr;
107+
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
108+
# }
101109

102-
location /currenttime/ {
103-
proxy_pass http://127.0.0.1:8001/;
104-
proxy_http_version 1.1;
105-
proxy_set_header Host $host;
106-
proxy_set_header X-Real-IP $remote_addr;
107-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
108-
}
110+
# REMOVE HARDCODED /currenttime
111+
# location /currenttime/ {
112+
# proxy_pass http://127.0.0.1:8001/;
113+
# proxy_http_version 1.1;
114+
# proxy_set_header Host $host;
115+
# proxy_set_header X-Real-IP $remote_addr;
116+
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
117+
# }
109118

110-
location /fininfo/ {
111-
proxy_pass http://127.0.0.1:8002/;
112-
proxy_http_version 1.1;
113-
proxy_set_header Host $host;
114-
proxy_set_header X-Real-IP $remote_addr;
115-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
116-
117-
# Additional settings for SSE support
118-
proxy_set_header Connection '';
119-
chunked_transfer_encoding off;
120-
proxy_buffering off;
121-
proxy_cache off;
122-
proxy_read_timeout 3600s;
123-
}
119+
# REMOVE HARDCODED /fininfo
120+
# location /fininfo/ {
121+
# proxy_pass http://127.0.0.1:8002/;
122+
# proxy_http_version 1.1;
123+
# proxy_set_header Host $host;
124+
# proxy_set_header X-Real-IP $remote_addr;
125+
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
126+
#
127+
# # Additional settings for SSE support
128+
# proxy_set_header Connection '';
129+
# chunked_transfer_encoding off;
130+
# proxy_buffering off;
131+
# proxy_cache off;
132+
# proxy_read_timeout 3600s;
133+
# }
134+
135+
# --- ADD DYNAMIC MARKERS --- START
136+
# DYNAMIC_LOCATIONS_START
137+
138+
# DYNAMIC_LOCATIONS_END
139+
# --- ADD DYNAMIC MARKERS --- END
124140

125141
location /tsbedrock/ {
126142
proxy_pass https://hwfo2k8szg.execute-api.us-east-1.amazonaws.com/prod/;

0 commit comments

Comments
 (0)