update dockerfile

This commit is contained in:
Huangzhe
2025-05-27 22:22:35 +08:00
parent d49f856fd0
commit 1549dc704d
2 changed files with 9 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
FROM yldc-docker.pkg.coding.yili.com/pubrepo/pubdocker/nginx:latest
FROM yldc-docker.pkg.coding.yili.com/pubrepo/pubdocker/nginx:op
# ---------------------只改此处,其它不动--------------------------
# 定义构建物目录 当前目录 ./ 为代码根目录

View File

@@ -21,6 +21,14 @@ server {
autoindex on;
}
location /aiagent/ {
proxy_pass https://yiligpt.x.digitalyili.com;
proxy_set_header Host yiligpt.x.digitalyili.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# 定义日志格式(通常在 http 块中定义即可)
# log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '