2023-01-19 02:13:00 -05:00
|
|
|
upstream server {
|
|
|
|
server server:8080;
|
|
|
|
}
|
|
|
|
|
2023-01-19 01:18:14 -05:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
root /usr/share/nginx/html/;
|
|
|
|
index index.html index.htm index.nginx-debian.html;
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
|
|
|
|
2023-01-19 02:13:00 -05:00
|
|
|
location /api/ {
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_pass http://server/;
|
2023-01-19 01:18:14 -05:00
|
|
|
}
|
|
|
|
}
|