mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-30 00:16:07 +08:00
增加了nginx配置和docker依赖
This commit is contained in:
parent
1de355078e
commit
bede90b672
|
@ -24,6 +24,7 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
|||
python3 \
|
||||
jq \
|
||||
openssh \
|
||||
alpine-sdk \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||
&& echo "Asia/Shanghai" > /etc/timezone \
|
||||
|
|
|
@ -2,6 +2,11 @@ upstream api {
|
|||
server localhost:5600;
|
||||
}
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 5700;
|
||||
root /ql/dist;
|
||||
|
@ -9,6 +14,8 @@ server {
|
|||
|
||||
location /api {
|
||||
proxy_pass http://api;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
}
|
||||
|
||||
gzip on;
|
||||
|
|
Loading…
Reference in New Issue
Block a user