Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions apps/linker/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"appid": 285,
"appname": "linker",
"apptitle": "Linker",
"apptype": "Tools",
"appTypeCN": "实用工具",
"appversion": [
{"m_version":"latest","s_version":[]}
],
"appdesc": "极具特色的异地组网、内网穿透,由P2P打洞(UDP+TCP、IPV4+IPV6) + 服务器实现。让你那些散落在世界各地的联网设备就像在隔壁房间一样轻松访问。",
"appstatus": 1,
"icon": "",
"sort": 98,
"home": "https://linker.snltty.com",
"help": "https://linker-doc.snltty.com",
"cpu": 0,
"mem": 0,
"disk": 10240,
"updateat": 1764839301,
"installed": false,
"reuse": true,
"depend": null,
"field": [
{"attr":"allow_access","name":"允许外部访问","type":"checkbox","default":true,"suffix":"允许直接通过主机IP+端口访问,如果您设置了域名请不要勾选这里","unit":""},
{"attr":"cpus","name":"cpu核心数限制","type":"number","default":0,"suffix":"0为不限制,最大可用核心数为: ","unit":""},
{"attr":"memory_limit","name":"内存限制","type":"number","default":0,"suffix":"0为不限制,最大可用内存为: ","unit":""}
],
"env": [
{"key":"app_path","type":"path","default":null,"desc":"应用数据目录"},
{"key":"host_ip","type":"string","default":null,"desc":"主机IP"},
{"key":"cpus","type":"number","default":null,"desc":"cpu核心数限制"},
{"key":"memory_limit","type":"number","default":null,"desc":"内存限制"}
],
"volumes": {"config": {"type": "path", "desc": "配置目录"}}
}
Binary file added apps/linker/ico-dkapp_linker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions apps/linker/linker/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
HOST_IP=0.0.0.0
CPUS=0
MEMORY_LIMIT=0
APP_PATH=/www/dk_project/dk_app/linker
29 changes: 29 additions & 0 deletions apps/linker/linker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
services:
linker:
image: snltty/linker
container_name: linker
deploy:
resources:
limits:
cpus: ${CPUS}
memory: ${MEMORY_LIMIT}
privileged: true
network_mode: host
restart: always
tty: true
stdin_open: true
devices:
- /dev/net/tun:/dev/net/tun
environment:
- SNLTTY_LINKER_IS_BT=linker
volumes:
- ${APP_PATH}/configs:/app/configs
- ${APP_PATH}/logs:/app/logs
labels:
createdBy: "bt_apps"
#networks:
# - baota_net

#networks:
# baota_net:
# external: true