22 lines
655 B
Nginx Configuration File
22 lines
655 B
Nginx Configuration File
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
server_name restawaiters;
|
||
|
|
||
|
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/ {
|
||
|
proxy_pass http://restaurant-service:6666/;
|
||
|
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;
|
||
|
}
|
||
|
}
|