From 6f685bab0d7981f3f96d0a6c68ceed81d74207ad Mon Sep 17 00:00:00 2001 From: 0000792 <1161664478@qq.com> Date: Fri, 9 Sep 2022 11:40:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3b673870..7589d2c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,16 @@ FROM nginx MAINTAINER lfzxs@qq.com VOLUME /tmp ENV LANG en_US.UTF-8 -RUN echo "server { - +RUN echo "server { \ + location /prod-api/{ \ + proxy_read_timeout 600s; \ + proxy_http_version 1.1; \ + proxy_set_header Upgrade $http_upgrade; \ + proxy_set_header Connection "upgrade"; \ + proxy_set_header Host $host; \ + proxy_set_header X-Real-Ip $remote_addr; \ + proxy_pass http://192.168.10.241:30646/; \ + } \ location / { \ root /var/www/html/; \ index index.html index.htm; \