feat(config): 更新环境配置和Nginx设置以支持动态端口配置
- 修改 .env.example 文件中的客户端API基础路径配置 - 将Dockerfile中的nginx.conf复制到模板目录以支持环境变量 - 在nginx配置中使用环境变量替换硬编码端口 - 为API文档路径(/docs、/redoc、/openapi.json)添加代理配置 - 移除硬编码的服务器地址,改用相对路径配置 - 更新docker-compose.yml以传递内部端口环境变量 - 简化nginx反向代理配置,移除冗余的服务器块配置
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ RUN npm run build:h5
|
||||
|
||||
FROM ${CLIENTS_NGINX_IMAGE}
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY nginx.conf /etc/nginx/templates/default.conf.template
|
||||
COPY --from=build /app/dist/build/h5 /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user