HimoolERP/configs/nginx.conf

23 lines
481 B
Nginx Configuration File
Raw Normal View History

2021-12-13 02:14:00 +08:00
server {
listen 12222;
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:12223/api/;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /media/ {
proxy_pass http://localhost:12223/media/;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
}
}