修改dockerfile

This commit is contained in:
0000792 2022-09-09 11:40:58 +08:00
parent e5c1c8deaf
commit 6f685bab0d
1 changed files with 10 additions and 2 deletions

View File

@ -2,8 +2,16 @@ FROM nginx
MAINTAINER lfzxs@qq.com MAINTAINER lfzxs@qq.com
VOLUME /tmp VOLUME /tmp
ENV LANG en_US.UTF-8 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 / { \ location / { \
root /var/www/html/; \ root /var/www/html/; \
index index.html index.htm; \ index index.html index.htm; \