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,6 @@
CONTAINER_NAME="wireguard-easy"
DATA_PATH="./data"
HOST_ADDRESS="172.17.0.1"
PANEL_APP_PORT_HTTP="40074"
WEBUI_PWD="password"
WIREGUARD_PORT="51820"

View File

@@ -0,0 +1,42 @@
additionalProperties:
formFields:
- default: 40074
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: WebUI Port
labelZh: 网页端口
required: true
rule: paramPort
type: number
- default: 51820
edit: true
envKey: WIREGUARD_PORT
labelEn: Wireguard port
labelZh: Wireguard端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: "password"
edit: true
envKey: WEBUI_PWD
labelEn: Webui password
labelZh: 网页密码
random: false
required: true
rule: paramComplexity
type: password
- default: 172.17.0.1
edit: true
envKey: HOST_ADDRESS
labelEn: Local IP address (must change item)
labelZh: 本机IP地址(必改项)
required: true
rule: paramCommon
type: text

View File

@@ -0,0 +1,38 @@
version: "3"
services:
wg-easy:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
environment:
- WG_HOST=${HOST_ADDRESS}
- PASSWORD=${WEBUI_PWD}
- WG_PORT=${WIREGUARD_PORT}
# Optional:
# - WG_DEFAULT_ADDRESS=10.8.0.x
# - WG_DEFAULT_DNS=1.1.1.1
# - WG_MTU=1420
# - WG_ALLOWED_IPS=192.168.15.0/24, 10.0.1.0/24
# - WG_PRE_UP=echo "Pre Up" > /etc/wireguard/pre-up.txt
# - WG_POST_UP=echo "Post Up" > /etc/wireguard/post-up.txt
# - WG_PRE_DOWN=echo "Pre Down" > /etc/wireguard/pre-down.txt
# - WG_POST_DOWN=echo "Post Down" > /etc/wireguard/post-down.txt
volumes:
- ${DATA_PATH}:/etc/wireguard
ports:
- "${WIREGUARD_PORT}:${WIREGUARD_PORT}/udp"
- "${PANEL_APP_PORT_HTTP}:51821/tcp"
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
image: weejewel/wg-easy:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true