|
@@ -5,16 +5,21 @@ VOLUME /tmp
|
|
|
ENV LANG en_US.UTF-8
|
|
|
RUN echo "server { \
|
|
|
listen 80; \
|
|
|
+ gzip on; \
|
|
|
+ gzip_static on; \
|
|
|
+ gzip_types text/plain text/css application/json application/javascript;\
|
|
|
+ gzip_min_length 1024;\
|
|
|
+ gzip_vary on;\
|
|
|
client_max_body_size 100m;\
|
|
|
location /client-server/ { \
|
|
|
- proxy_pass http://139.155.176.112:7101/; \
|
|
|
+ proxy_pass http://192.168.1.4:7103/; \
|
|
|
proxy_redirect off; \
|
|
|
proxy_set_header Host client-server; \
|
|
|
proxy_set_header X-Real-IP \$remote_addr; \
|
|
|
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; \
|
|
|
} \
|
|
|
location /jgfile/ { \
|
|
|
- proxy_pass http://139.155.176.112:19000/jgfile/; \
|
|
|
+ proxy_pass http://192.168.1.4:9000/jgfile/; \
|
|
|
proxy_redirect off; \
|
|
|
proxy_set_header Host jgfile; \
|
|
|
proxy_set_header X-Real-IP \$remote_addr; \
|