DAS_2023_1/arutunyan_dmitry_lab_3/nginx.conf

28 lines
507 B
Nginx Configuration File
Raw Normal View History

2023-11-12 20:59:21 +04:00
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/;
}
}
}