2024-11-03 20:15:43 +04:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
2024-11-03 20:30:29 +04:00
|
|
|
server_name localhost;
|
2024-11-03 20:15:43 +04:00
|
|
|
|
|
|
|
location /waiters/ {
|
|
|
|
proxy_pass http://waiter-service:4000/;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Prefix /test;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /restaurants/ {
|
2024-11-03 20:30:29 +04:00
|
|
|
proxy_pass http://restaurant-service:5089/;
|
2024-11-03 20:15:43 +04:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Prefix /admin;
|
|
|
|
}
|
|
|
|
}
|