forked from Alexey/DAS_2024_1
21 lines
409 B
Nginx Configuration File
21 lines
409 B
Nginx Configuration File
|
http {
|
||
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
server_name localhost;
|
||
|
|
||
|
# Прокси для ProductService
|
||
|
location /product/ {
|
||
|
proxy_pass http://product:8080;
|
||
|
}
|
||
|
|
||
|
# Прокси для PriceHistoryService
|
||
|
location /price-history/ {
|
||
|
proxy_pass http://price:8081;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
events {
|
||
|
worker_connections 1024;
|
||
|
}
|