1
0

精简提交历史记录

This commit is contained in:
okxlin
2023-11-09 19:15:01 +08:00
commit 691aa7aac9
1529 changed files with 800341 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
CONTAINER_NAME="twonav"
PANEL_APP_PORT_HTTP="40169"

View File

@@ -0,0 +1,10 @@
additionalProperties:
formFields:
- default: 40169
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

@@ -0,0 +1,19 @@
version: '3'
services:
twonav:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:80"
volumes:
- "./data:/www"
tty: true
image: tznb/twonav:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@@ -0,0 +1,20 @@
#!/bin/sh
# 设置下载目录
download_dir="./data"
# 下载文件
wget -P "$download_dir" "https://ghproxy.com/https://github.com/tznb1/TwoNav/archive/refs/heads/master.zip"
# 解压文件
unzip -o -d "$download_dir" "$download_dir/master.zip"
# 复制文件
cp -rf "$download_dir/TwoNav-master/"* "$download_dir/"
# 删除不需要的文件和目录
rm -rf "$download_dir/TwoNav-master"
rm -rf "$download_dir/master.zip"
# 更改文件所有者
chown -R www-data "$download_dir"