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; \