Vue项目打包发布,配置Nginx
#user nobody;worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
location / {
root /opt/coty/coty-wechat-ui/dist;
index index.html index.htm;
}
location /wechat-ws/api {
proxy_pass http://10.215.65.131:8091/wechat-ws/api/;
}
}
}
以上是 Vue项目打包发布,配置Nginx 的全部内容, 来源链接: utcz.com/z/379994.html