lenve / vhr

微人事是一个前后端分离的人力资源管理系统,项目采用SpringBoot+Vue开发。
http://vhr.javaboy.org
27.29k stars 10.29k forks source link

本地成功后 Nginx怎么配置 #94

Open liuguangqing opened 5 years ago

liuguangqing commented 5 years ago

本地运行成功后想部署上去 通过nginx去管理

liuguangqing commented 5 years ago

做了层转发

    # 接口转发
    location ~ / {
        proxy_redirect off;
        proxy_pass http://ip.ip.ip.ip:8082;
        index       index.html index.htm;
        proxy_set_header   Host             $host;
        proxy_set_header   X-Real-IP        $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    }