1
0

feat:添加softethervpn到列表#1351

This commit is contained in:
okxlin
2024-06-30 23:37:53 +08:00
parent 4ca55e291e
commit f3cf6a1711
6 changed files with 184 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
CONTAINER_NAME="softethervpn"
SOFTETHER_DATA_PATH="./data/softether_data"
SOFTETHER_LOG_PATH="./data/softether_log"
SOFTETHER_PACKETLOG_PATH="./data/softether_packetlog"
SOFTETHER_SECURITYLOG_PATH="./data/softether_securitylog"
VPN_PORT_1194_UDP=1194
VPN_PORT_1701_UDP=1701
VPN_PORT_443=444
VPN_PORT_4500_UDP=4500
VPN_PORT_500_UDP=500
VPN_PORT_53=53
VPN_PORT_5555=5555
VPN_PORT_992=992

View File

@@ -0,0 +1,94 @@
additionalProperties:
formFields:
- default: "53"
edit: true
envKey: VPN_PORT_53
labelEn: VPN Port 53
labelZh: VPN 端口 53
required: true
rule: paramPort
type: number
- default: "444"
edit: true
envKey: VPN_PORT_443
labelEn: VPN Port 443
labelZh: VPN 端口 443
required: true
rule: paramPort
type: number
- default: "992"
edit: true
envKey: VPN_PORT_992
labelEn: VPN Port 992
labelZh: VPN 端口 992
required: true
rule: paramPort
type: number
- default: "1194"
edit: true
envKey: VPN_PORT_1194_UDP
labelEn: VPN Port 1194 (UDP)
labelZh: VPN 端口 1194 (UDP)
required: true
rule: paramPort
type: number
- default: "5555"
edit: true
envKey: VPN_PORT_5555
labelEn: VPN Port 5555
labelZh: VPN 端口 5555
required: true
rule: paramPort
type: number
- default: "500"
edit: true
envKey: VPN_PORT_500_UDP
labelEn: VPN Port 500 (UDP)
labelZh: VPN 端口 500 (UDP)
required: true
rule: paramPort
type: number
- default: "4500"
edit: true
envKey: VPN_PORT_4500_UDP
labelEn: VPN Port 4500 (UDP)
labelZh: VPN 端口 4500 (UDP)
required: true
rule: paramPort
type: number
- default: "1701"
edit: true
envKey: VPN_PORT_1701_UDP
labelEn: VPN Port 1701 (UDP)
labelZh: VPN 端口 1701 (UDP)
required: true
rule: paramPort
type: number
- default: "./data/softether_data"
disabled: true
envKey: SOFTETHER_DATA_PATH
labelEn: SoftEther Data Path
labelZh: SoftEther 数据路径
required: true
type: text
- default: "./data/softether_log"
disabled: true
envKey: SOFTETHER_LOG_PATH
labelEn: SoftEther Log Path
labelZh: SoftEther 日志路径
required: true
type: text
- default: "./data/softether_packetlog"
disabled: true
envKey: SOFTETHER_PACKETLOG_PATH
labelEn: SoftEther Packet Log Path
labelZh: SoftEther 数据包日志路径
required: true
type: text
- default: "./data/softether_securitylog"
disabled: true
envKey: SOFTETHER_SECURITYLOG_PATH
labelEn: SoftEther Security Log Path
labelZh: SoftEther 安全日志路径
required: true
type: text

View File

@@ -0,0 +1,30 @@
services:
softether:
image: "softethervpn/vpnserver:latest"
cap_add:
- NET_ADMIN
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- ${VPN_PORT_53}:53
- ${VPN_PORT_443}:443
- ${VPN_PORT_992}:992
- ${VPN_PORT_1194_UDP}:1194/udp
- ${VPN_PORT_5555}:5555
- ${VPN_PORT_500_UDP}:500/udp
- ${VPN_PORT_4500_UDP}:4500/udp
- ${VPN_PORT_1701_UDP}:1701/udp
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
- ${SOFTETHER_DATA_PATH}:/mnt
- ${SOFTETHER_LOG_PATH}:/root/server_log
- ${SOFTETHER_PACKETLOG_PATH}:/root/packet_log
- ${SOFTETHER_SECURITYLOG_PATH}:/root/security_log
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true