feat:添加openvpn-as到列表
This commit is contained in:
4
apps/openvpn-as/latest/.env.sample
Normal file
4
apps/openvpn-as/latest/.env.sample
Normal file
@@ -0,0 +1,4 @@
|
||||
CONTAINER_NAME="openvpn-as"
|
||||
PANEL_APP_PORT_CONSOLE="40239"
|
||||
PANEL_APP_PORT_HTTPS="443"
|
||||
PANEL_APP_PORT_UDP="1194"
|
||||
26
apps/openvpn-as/latest/data.yml
Normal file
26
apps/openvpn-as/latest/data.yml
Normal 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
|
||||
21
apps/openvpn-as/latest/docker-compose.yml
Normal file
21
apps/openvpn-as/latest/docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user