chore: test nginx plain response
Some checks failed
Deploy to OCIWP / deploy (push) Has been cancelled
Some checks failed
Deploy to OCIWP / deploy (push) Has been cancelled
This commit is contained in:
@@ -1,89 +1,6 @@
|
|||||||
upstream gateway {
|
|
||||||
server gateway-blue:8081;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream tool-sms {
|
|
||||||
server tool-sms-blue:8082;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream tool-email {
|
|
||||||
server tool-email-blue:8083;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream tool-other {
|
|
||||||
server tool-other-blue:8084;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream tool-payment {
|
|
||||||
server tool-payment-blue:8085;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8281;
|
listen 8281;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://gateway;
|
return 200 "HELLO FROM NGINX";
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Connection '';
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 8282;
|
|
||||||
location / {
|
|
||||||
proxy_pass http://tool-sms;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Connection '';
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 8283;
|
|
||||||
location / {
|
|
||||||
proxy_pass http://tool-email;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Connection '';
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 8284;
|
|
||||||
location / {
|
|
||||||
proxy_pass http://tool-other;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Connection '';
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 8285;
|
|
||||||
location / {
|
|
||||||
proxy_pass http://tool-payment;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Connection '';
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,89 +1,6 @@
|
|||||||
upstream gateway {
|
|
||||||
server gateway-green:8081;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream tool-sms {
|
|
||||||
server tool-sms-green:8082;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream tool-email {
|
|
||||||
server tool-email-green:8083;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream tool-other {
|
|
||||||
server tool-other-green:8084;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream tool-payment {
|
|
||||||
server tool-payment-green:8085;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8281;
|
listen 8281;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://gateway;
|
return 200 "HELLO FROM NGINX";
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Connection '';
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 8282;
|
|
||||||
location / {
|
|
||||||
proxy_pass http://tool-sms;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Connection '';
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 8283;
|
|
||||||
location / {
|
|
||||||
proxy_pass http://tool-email;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Connection '';
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 8284;
|
|
||||||
location / {
|
|
||||||
proxy_pass http://tool-other;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Connection '';
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 8285;
|
|
||||||
location / {
|
|
||||||
proxy_pass http://tool-payment;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Connection '';
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user