27 lines
816 B
Nginx Configuration File
27 lines
816 B
Nginx Configuration File
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
server {
|
|
listen 8086;
|
|
listen [::]:8086;
|
|
server_name localhost;
|
|
|
|
location /msg_service/ {
|
|
proxy_pass http://msg_service:8081/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Prefix $scheme;
|
|
}
|
|
|
|
location /usr_service/ {
|
|
proxy_pass http://usr_service:8082/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Prefix $scheme;
|
|
}
|
|
}
|
|
} |