19 lines
304 B
Nginx Configuration File
19 lines
304 B
Nginx Configuration File
|
upstream server {
|
||
|
server server:8080;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 80;
|
||
|
|
||
|
location / {
|
||
|
root /usr/share/nginx/html/;
|
||
|
index index.html index.htm index.nginx-debian.html;
|
||
|
try_files $uri $uri/ /index.html;
|
||
|
}
|
||
|
|
||
|
location /api/ {
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_pass http://server/;
|
||
|
}
|
||
|
}
|