Commit 38dc2ca5 authored by tanghao's avatar tanghao

123

parent 6055c8d5
FROM nginx
ENV NGINX_PROXY_PASS=http://192.168.3.151:10000/
MAINTAINER tanghao@163.com
VOLUME /tmp
ENV LANG en_US.UTF-8
RUN mkdir -p /var/www \
&& mkdir -p /var/www/html
ADD ./dist/ /var/www/html/
EXPOSE 80
EXPOSE 443
CMD ["echo","'server { \
RUN echo "server { \
listen 80; \
client_max_body_size 50M; \
location /api/ { \
proxy_pass $NGINX_PROXY_PASS; \
proxy_pass http://192.168.3.151:10000/; \
proxy_redirect off; \
proxy_set_header Host topsun-excel-order; \
proxy_set_header X-Real-IP \$remote_addr; \
......@@ -28,4 +22,10 @@ CMD ["echo","'server { \
} \
} \
access_log /var/log/nginx/access.log ; \
} ' > /etc/nginx/conf.d/default.conf"]
} " > /etc/nginx/conf.d/default.conf \
&& mkdir -p /var/www \
&& mkdir -p /var/www/html
ADD ./dist/ /var/www/html/
EXPOSE 80
EXPOSE 443
......@@ -6,7 +6,7 @@ RUN echo "server { \
listen 80; \
client_max_body_size 50M; \
location /api/ { \
proxy_pass http://192.168.3.15/; \
proxy_pass http://192.168.3.151:10010/; \
proxy_redirect off; \
proxy_set_header Host topsun-excel-order; \
proxy_set_header X-Real-IP \$remote_addr; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment