1
0

feat:添加openvpn-as到列表

This commit is contained in:
okxlin
2024-05-12 21:12:47 +08:00
parent 374830b3bc
commit ee2877fd0d
6 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
CONTAINER_NAME="openvpn-as"
PANEL_APP_PORT_CONSOLE="40239"
PANEL_APP_PORT_HTTPS="443"
PANEL_APP_PORT_UDP="1194"

View File

@@ -0,0 +1,26 @@
additionalProperties:
formFields:
- default: 40239
edit: true
envKey: PANEL_APP_PORT_CONSOLE
labelEn: Console Port
labelZh: 控制台端口
required: true
rule: paramPort
type: number
- default: 443
edit: true
envKey: PANEL_APP_PORT_HTTPS
labelEn: HTTPS Port
labelZh: HTTPS 端口
required: true
rule: paramPort
type: number
- default: 1194
edit: true
envKey: PANEL_APP_PORT_UDP
labelEn: UDP Port
labelZh: UDP 端口
required: true
rule: paramPort
type: number

View File

@@ -0,0 +1,21 @@
version: '3'
services:
openvpn-as:
image: openvpn/openvpn-as:latest
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_CONSOLE}:943"
- "${PANEL_APP_PORT_HTTPS}:443"
- "${PANEL_APP_PORT_UDP}:1194/udp"
cap_add:
- NET_ADMIN
volumes:
- "./data:/openvpn"
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true