mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 16:21:11 +08:00
24w18f
This commit is contained in:
parent
91b7cfe533
commit
ddd12729a4
6 changed files with 22 additions and 15 deletions
|
|
@ -1,5 +1,11 @@
|
||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
|
24w18f
|
||||||
|
---
|
||||||
|
- PRE-RELEASE: 此版本是预发布版本,请勿在生产环境中使用
|
||||||
|
- CHANGE: 修正前端页面的部分样式问题
|
||||||
|
- FIX: 修正部分问题
|
||||||
|
|
||||||
24w18e
|
24w18e
|
||||||
---
|
---
|
||||||
- PRE-RELEASE: 此版本是预发布版本,请勿在生产环境中使用
|
- PRE-RELEASE: 此版本是预发布版本,请勿在生产环境中使用
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
24w18e
|
24w18f
|
||||||
|
|
@ -81,7 +81,7 @@ host = "127.0.0.1" # 监听地址
|
||||||
port = 8080 # 监听端口
|
port = 8080 # 监听端口
|
||||||
sizeLimit = 131072000 # 125MB
|
sizeLimit = 131072000 # 125MB
|
||||||
|
|
||||||
[page]
|
[pages]
|
||||||
enabled = true # 是否开启内置静态页面
|
enabled = true # 是否开启内置静态页面
|
||||||
staticPath = "/data/www" # 静态页面文件路径
|
staticPath = "/data/www" # 静态页面文件路径
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ host = "127.0.0.1"
|
||||||
port = 8080
|
port = 8080
|
||||||
sizeLimit = 131072000 # 125MB
|
sizeLimit = 131072000 # 125MB
|
||||||
|
|
||||||
[page]
|
[pages]
|
||||||
enabled = true
|
enabled = true
|
||||||
staticDir = "/root/data/ghproxy/pages"
|
staticDir = "/root/data/ghproxy/pages"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,30 +57,31 @@ mkdir -p /root/data/ghproxy/pages
|
||||||
|
|
||||||
# 获取最新版本号
|
# 获取最新版本号
|
||||||
VERSION=$(curl -s https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/DEV-VERSION)
|
VERSION=$(curl -s https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/DEV-VERSION)
|
||||||
wget -O /root/data/ghproxy/VERSION https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/DEV-VERSION
|
wget -q -O /root/data/ghproxy/VERSION https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/DEV-VERSION
|
||||||
|
|
||||||
# 下载ghproxy
|
# 下载ghproxy
|
||||||
wget -O /root/data/ghproxy/ghproxy https://github.com/WJQSERVER-STUDIO/ghproxy/releases/download/$VERSION/ghproxy-linux-$ARCH
|
wget -q -O /root/data/ghproxy/ghproxy https://github.com/WJQSERVER-STUDIO/ghproxy/releases/download/$VERSION/ghproxy-linux-$ARCH
|
||||||
chmod +x /root/data/ghproxy/ghproxy
|
chmod +x /root/data/ghproxy/ghproxy
|
||||||
|
|
||||||
# 下载pages
|
# 下载pages
|
||||||
wget -O /root/data/ghproxy/pages/index.html https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/pages/index.html
|
wget -q -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
|
wget -q -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
|
if [ -f /root/data/ghproxy/config/config.toml ]; then
|
||||||
echo "配置文件已存在, 跳过下载"
|
echo "配置文件已存在, 跳过下载"
|
||||||
echo "请检查配置文件是否正确,DEV版本升级时请注意配置文件兼容性"
|
echo "[WARNING] 请检查配置文件是否正确,DEV版本升级时请注意配置文件兼容性"
|
||||||
|
sleep 2
|
||||||
else
|
else
|
||||||
wget -O /root/data/ghproxy/config/config.toml https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/deploy/config.toml
|
wget -q -O /root/data/ghproxy/config/config.toml https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/deploy/config.toml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 替换 port = 8080
|
# 替换 port = 8080
|
||||||
sed -i "s/port = 8080/port = $PORT/g" /root/data/ghproxy/config/config.toml
|
sed -i "s/port = 8080/port = $PORT/g" /root/data/ghproxy/config/config.toml
|
||||||
|
|
||||||
# 下载systemd服务文件
|
# 下载systemd服务文件
|
||||||
wget -O /etc/systemd/system/ghproxy.service https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/deploy/ghproxy.service
|
wget -q -O /etc/systemd/system/ghproxy.service https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/deploy/ghproxy.service
|
||||||
|
|
||||||
# 启动ghproxy
|
# 启动ghproxy
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<link rel="stylesheet" href="https://font.sec.miui.com/font/css?family=MiSans:400,700:MiSans">
|
<link rel="stylesheet" href="https://font.sec.miui.com/font/css?family=MiSans:400,700:MiSans">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background-color: #d6d6d6c5;
|
background-color: #ecececf3;
|
||||||
font-family: 'Misans', Arial, sans-serif;
|
font-family: 'Misans', Arial, sans-serif;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
line-height: 1.1;
|
line-height: 1.25;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
background: #012333;
|
background: #012333;
|
||||||
color: #39c5bb;
|
color: #39c5bc;
|
||||||
padding: 20px 20px;
|
padding: 20px 20px;
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
@ -129,7 +129,7 @@
|
||||||
#visitor-info {
|
#visitor-info {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 0.5;
|
line-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#toast {
|
#toast {
|
||||||
|
|
@ -137,7 +137,7 @@
|
||||||
top: 10%;
|
top: 10%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
background-color: #39c5bcd2;
|
background-color: #39c5bcde;
|
||||||
color: white;
|
color: white;
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue