HimoolERP/configs/nginx
2021-07-24 23:05:45 +08:00

23 lines
No EOL
493 B
Text

server{
listen 8010;
charset utf-8;
gzip_static on;
location / {
root /home/oms/frontend/dist/;
index index.html index.html;
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://localhost:9010/api/;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /media/ {
proxy_pass http://localhost:9010/media/;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
}
}