增加了nginx配置和docker依赖

This commit is contained in:
zhouteng 2021-06-09 15:58:51 +08:00
parent 1de355078e
commit bede90b672
2 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,7 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
python3 \ python3 \
jq \ jq \
openssh \ openssh \
alpine-sdk \
&& rm -rf /var/cache/apk/* \ && rm -rf /var/cache/apk/* \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \ && echo "Asia/Shanghai" > /etc/timezone \

View File

@ -2,6 +2,11 @@ upstream api {
server localhost:5600; server localhost:5600;
} }
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server { server {
listen 5700; listen 5700;
root /ql/dist; root /ql/dist;
@ -9,6 +14,8 @@ server {
location /api { location /api {
proxy_pass http://api; proxy_pass http://api;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
} }
gzip on; gzip on;