@@ -21,6 +21,7 @@ server {
21
21
proxy_pass ${HTTP_PROTOCOL}://${COMMUNITY_SERVICE};
22
22
proxy_set_header Host ${COMMUNITY_SERVICE};
23
23
proxy_set_header X-Forwarded-Host $http_host;
24
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
24
25
sub_filter_types application/json text/html;
25
26
sub_filter "${HTTP_PROTOCOL}://${COMMUNITY_SERVICE}" "$scheme://$http_host";
26
27
sub_filter_once off;
@@ -40,6 +41,7 @@ server {
40
41
proxy_pass ${HTTP_PROTOCOL}://${IDENTITY_SERVICE};
41
42
proxy_set_header Host ${IDENTITY_SERVICE};
42
43
proxy_set_header X-Forwarded-Host $http_host;
44
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
43
45
proxy_ssl_verify off;
44
46
proxy_ssl_trusted_certificate /app/certs/server.crt;
45
47
}
@@ -56,6 +58,7 @@ server {
56
58
proxy_pass ${HTTP_PROTOCOL}://${WORKSHOP_SERVICE};
57
59
proxy_set_header Host ${WORKSHOP_SERVICE};
58
60
proxy_set_header X-Forwarded-Host $http_host;
61
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
59
62
sub_filter_types application/json text/html;
60
63
sub_filter "${HTTP_PROTOCOL}://${WORKSHOP_SERVICE}" "$scheme://$http_host";
61
64
sub_filter_once off;
@@ -75,6 +78,7 @@ server {
75
78
proxy_pass ${HTTP_PROTOCOL}://${CHATBOT_SERVICE};
76
79
proxy_set_header Host ${CHATBOT_SERVICE};
77
80
proxy_set_header X-Forwarded-Host $http_host;
81
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
78
82
sub_filter_types application/json text/html;
79
83
sub_filter "${HTTP_PROTOCOL}://${CHATBOT_SERVICE}" "$scheme://$http_host";
80
84
sub_filter_once off;
@@ -121,6 +125,7 @@ server {
121
125
proxy_pass ${HTTP_PROTOCOL}://${COMMUNITY_SERVICE};
122
126
proxy_set_header Host ${COMMUNITY_SERVICE};
123
127
proxy_set_header X-Forwarded-Host $http_host;
128
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
124
129
sub_filter_types application/json text/html;
125
130
sub_filter "${HTTP_PROTOCOL}://${COMMUNITY_SERVICE}" "$scheme://$http_host";
126
131
sub_filter_once off;
@@ -138,6 +143,7 @@ server {
138
143
proxy_pass ${HTTP_PROTOCOL}://${IDENTITY_SERVICE};
139
144
proxy_set_header Host ${IDENTITY_SERVICE};
140
145
proxy_set_header X-Forwarded-Host $http_host;
146
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
141
147
}
142
148
143
149
location /workshop/ {
@@ -152,6 +158,7 @@ server {
152
158
proxy_pass ${HTTP_PROTOCOL}://${WORKSHOP_SERVICE};
153
159
proxy_set_header Host ${WORKSHOP_SERVICE};
154
160
proxy_set_header X-Forwarded-Host $http_host;
161
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
155
162
sub_filter_types application/json text/html;
156
163
sub_filter "${HTTP_PROTOCOL}://${WORKSHOP_SERVICE}" "$scheme://$http_host";
157
164
sub_filter_once off;
@@ -169,6 +176,7 @@ server {
169
176
proxy_pass ${HTTP_PROTOCOL}://${CHATBOT_SERVICE};
170
177
proxy_set_header Host ${CHATBOT_SERVICE};
171
178
proxy_set_header X-Forwarded-Host $http_host;
179
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
172
180
sub_filter_types application/json text/html;
173
181
sub_filter "://${CHATBOT_SERVICE}" "://$http_host";
174
182
sub_filter_once off;
0 commit comments