2024-11-03 22:17:59 +04:00
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
2024-11-03 22:15:01 +04:00
|
|
|
|
2024-11-03 22:17:59 +04:00
|
|
|
http {
|
2024-11-03 20:51:32 +04:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
server_name localhost;
|
2024-11-03 20:15:43 +04:00
|
|
|
|
2024-11-03 20:51:32 +04:00
|
|
|
location /waiters/ {
|
2024-11-03 23:47:31 +04:00
|
|
|
proxy_pass http://waiter_service:4000/waiters/;
|
2024-11-03 20:51:32 +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 /test;
|
|
|
|
}
|
2024-11-03 20:15:43 +04:00
|
|
|
|
2024-11-03 20:51:32 +04:00
|
|
|
location /restaurants/ {
|
2024-11-04 01:34:00 +04:00
|
|
|
proxy_pass http://restaurant_service:8080/api/restaurant/;
|
2024-11-03 20:51:32 +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;
|
|
|
|
}
|
2024-11-03 20:15:43 +04:00
|
|
|
}
|
|
|
|
}
|