mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
24w18e
This commit is contained in:
parent
c50f23c399
commit
e5d941414e
11 changed files with 51 additions and 9 deletions
|
|
@ -3,6 +3,10 @@ host = "127.0.0.1"
|
|||
port = 8080
|
||||
sizeLimit = 131072000 # 125MB
|
||||
|
||||
[page]
|
||||
enabled = true
|
||||
staticDir = "/root/data/ghproxy/pages"
|
||||
|
||||
[log]
|
||||
logFilePath = "/root/data/ghproxy/log/ghproxy.log"
|
||||
maxLogSize = 5 # MB
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ fi
|
|||
mkdir -p /root/data/ghproxy
|
||||
mkdir -p /root/data/ghproxy/config
|
||||
mkdir -p /root/data/ghproxy/log
|
||||
mkdir -p /root/data/ghproxy/pages
|
||||
|
||||
# 获取最新版本号
|
||||
VERSION=$(curl -s https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/DEV-VERSION)
|
||||
|
|
@ -62,6 +63,11 @@ wget -O /root/data/ghproxy/VERSION https://raw.githubusercontent.com/WJQSERVER-S
|
|||
wget -O /root/data/ghproxy/ghproxy https://github.com/WJQSERVER-STUDIO/ghproxy/releases/download/$VERSION/ghproxy-linux-$ARCH
|
||||
chmod +x /root/data/ghproxy/ghproxy
|
||||
|
||||
# 下载pages
|
||||
wget -O /root/data/ghproxy/pages/index.html https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/pages/index.html
|
||||
wget -O /root/data/ghproxy/pages/favicon.ico https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/pages/favicon.ico
|
||||
|
||||
|
||||
# 下载配置文件
|
||||
if [ -f /root/data/ghproxy/config/config.toml ]; then
|
||||
echo "配置文件已存在, 跳过下载"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue