Files
AIGC/demo/nginx/Dockerfile
AIGC Developer d5f7569a3a 配置 Nginx 反向代理和 Ngrok 内网穿透支持
- 添加 Nginx 反向代理配置(支持 ngrok 域名)
- 创建统一的 API 工具函数(自动适配域名)
- 更新前端 API 配置支持相对路径
- 配置支付宝回调地址使用 ngrok URL
- 优化 Docker Compose 配置(仅暴露 80 端口)
- 添加完整的部署和配置文档
2025-11-03 18:09:23 +08:00

17 lines
321 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM nginx:alpine
# 复制Nginx配置覆盖默认配置
COPY nginx.conf /etc/nginx/nginx.conf
# 创建必要的目录和日志目录
RUN mkdir -p /usr/share/nginx/html && \
mkdir -p /var/log/nginx && \
mkdir -p /var/cache/nginx
# 暴露端口
EXPOSE 80
# 启动Nginx
CMD ["nginx", "-g", "daemon off;"]