DAS_2023_1/arutunyan_dmitry_lab_3/nginx.conf

28 lines
507 B
Nginx Configuration File

events {
worker_connections 1024;
}
http {
upstream product-service {
server product-service:8080;
}
upstream order-service {
server order-service:8081;
}
server {
listen 80;
listen [::]:80;
server_name localhost;
location /product-service/ {
proxy_pass http://product-service/;
}
location /order-service/ {
proxy_pass http://order-service/;
}
}
}