21 lines
463 B
Plaintext
21 lines
463 B
Plaintext
server {
|
|
listen 80;
|
|
listen 2053;
|
|
server_name hm.zhiweidata.ai;
|
|
|
|
root /home/enzo/public/hive-manage-v3;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://127.0.0.1:8001;
|
|
proxy_buffering off;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
}
|