Co-authored-by: xiuting.xu <xiutingxt.xu@gmail.com> Reviewed-on: #28 Reviewed-by: yuyr <yuyr@zgclab.edu.cn> Reviewed-by: huhy <husteryezi@163.com> Reviewed-by: sundapeng <sundp@mail.zgclab.edu.cn>
29 lines
456 B
Nginx Configuration File
29 lines
456 B
Nginx Configuration File
user web;
|
|
worker_processes auto;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
sendfile on;
|
|
|
|
# React 前端服务
|
|
server {
|
|
listen 8080;
|
|
server_name web.argus.com;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# React 前端路由兼容
|
|
location / {
|
|
try_files $uri /index.html;
|
|
}
|
|
}
|
|
|
|
|
|
}
|