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/;
		}
		
		

    }


}

  

posted @ 2019-08-03 11:35  巴黎爱工作  阅读(1360)  评论(0编辑  收藏  举报