欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 建筑 > Nginx独立项目相关配置说明

Nginx独立项目相关配置说明

2025/2/23 0:52:25 来源:https://blog.csdn.net/NWVDI/article/details/143632252  浏览:    关键词:Nginx独立项目相关配置说明
配置前说明
1. 部署环境为https环境的,除华为云表态托管等都需要此配置,如cloud。
2. 部署环境为https环境的,可以使用api.js直接访问后端服务,无需此配置。
3. 转发的后台服务接口需要和后台人员沟通确认一致。
详细配置说明

***部署环境为https时,需要转成http。

工单:

location /workOrderApi/ {proxy_redirect https:// http://;proxy_pass http://127.0.0.1:8030/;
}

标签打印:

location /labelPrintingApi/ {proxy_pass http://127.0.0.1:8030/;
}

字段属性自动命名:

location /fieldPropertiesAutomaticallyNamedApi/ {proxy_pass http://127.0.0.1:8030/;
}

项目:

location /projectApi/ {proxy_pass http://127.0.0.1:8030/;
}

任务输出:

location /taskOutputApi/ {proxy_pass http://127.0.0.1:8030/;
}

模板管理:

location /templateManagerApi/ {proxy_pass http://127.0.0.1:8030/;
}

业务:

location /businessApi/ {proxy_pass http://127.0.0.1:8030/;
}

资产:

location /billsManagementApi/ {proxy_pass http://127.0.0.1:8030/;
}
调用说明

在独立项目的配置文件api.js中,需要进行以下配置:

  1. 直接访问

    apiProjectHost:‘http://release.nvisual.com:8030’

  2. nginx转发,以cloud【项目】为例

    apiProjectHost:‘https://cloud.nvisual.com/projectApi’

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com