bday2020/dev-proxy/nginx.conf

24 lines
310 B
Nginx Configuration File
Raw Permalink Normal View History

2020-09-05 23:53:13 +00:00
upstream ui {
server ui:8080;
}
2020-09-06 00:44:09 +00:00
upstream api {
server api:3000;
}
2020-09-05 23:53:13 +00:00
server {
listen 80 default_server;
server_name _;
error_log /dev/stderr;
access_log /dev/stdout;
location / {
proxy_pass http://ui;
}
2020-09-06 00:44:09 +00:00
location /api/ {
proxy_pass http://api;
}
2020-09-05 23:53:13 +00:00
}