diff --git a/nginx/Dockerfile b/nginx/Dockerfile index b75fcf9..14479f2 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -1,7 +1,7 @@ # Nginx Docker image # 包含自定义配置的反向代理 -FROM nginx:alpine +FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:alpine LABEL maintainer="StoneLan" LABEL description="Nginx reverse proxy container" diff --git a/nginx/conf.d/oneapi.conf b/nginx/conf.d/oneapi.conf deleted file mode 100644 index 5aa0a9b..0000000 --- a/nginx/conf.d/oneapi.conf +++ /dev/null @@ -1,38 +0,0 @@ -server { - listen 80; - server_name oneapi.stonelan.cn; - - location / { - proxy_pass http://oneapi:3000; - proxy_set_header Host $host; - 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; - - # 添加代理超时配置 - proxy_connect_timeout 60s; - proxy_read_timeout 600s; - proxy_send_timeout 600s; - - # 支持大文件上传和API请求 - client_max_body_size 100M; - proxy_buffering off; - - # 启用gzip压缩 - gzip on; - gzip_vary on; - gzip_min_length 1024; - gzip_proxied any; - gzip_comp_level 6; - gzip_types - text/plain - text/css - text/xml - text/javascript - application/json - application/javascript - application/xml+rss - application/atom+xml - image/svg+xml; - } -} \ No newline at end of file diff --git a/nginx/nginx-09051708.tar b/nginx/nginx-09051708.tar new file mode 100644 index 0000000..d31abae Binary files /dev/null and b/nginx/nginx-09051708.tar differ