update dockerfile
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
# ---------------------只改此处,其它不动--------------------------
|
# ---------------------只改此处,其它不动--------------------------
|
||||||
# 定义构建物目录 当前目录 ./ 为代码根目录
|
# 定义构建物目录 当前目录 ./ 为代码根目录
|
||||||
|
|||||||
@@ -21,6 +21,14 @@ server {
|
|||||||
autoindex on;
|
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 块中定义即可)
|
# 定义日志格式(通常在 http 块中定义即可)
|
||||||
# log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
# log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
# '$status $body_bytes_sent "$http_referer" '
|
# '$status $body_bytes_sent "$http_referer" '
|
||||||
|
|||||||
Reference in New Issue
Block a user