wireguard定制化
Go to file
coward 96999be84a
All checks were successful
continuous-integration/drone/tag Build is passing
🎨修改通知模板
2024-12-05 15:09:52 +08:00
command 🎨几乎全部完成 2024-08-12 16:52:28 +08:00
component 🆕导入配置文件完成 2024-09-23 15:58:46 +08:00
config 🎨将邮箱smtp配置改为系统当中配置 2024-10-15 17:16:22 +08:00
cron 🎨修改通知模板 2024-12-05 15:09:52 +08:00
dist 🎨添加静态打包 2024-08-21 09:10:01 +08:00
document 📝更新readme 2024-10-15 17:22:39 +08:00
global 🎨优化 2024-07-12 17:18:04 +08:00
http 🎨备份导出、导入新增其他配置 2024-11-04 16:50:50 +08:00
initialize 🎨优化以下 2024-07-11 16:21:08 +08:00
model 🆕为实现数据迁移以及备份新增配置导出 2024-09-20 17:26:41 +08:00
script 🐛修复一个牛逼的bug 2024-08-22 11:43:23 +08:00
service 👋这是 2024-11-06 09:10:30 +08:00
template 🐛修复模板渲染bug 2024-08-20 14:24:13 +08:00
utils 🐛修复微信通知bug 2024-12-05 11:25:21 +08:00
web 调整了客户端列表页面的卡片布局 2024-11-04 17:25:27 +08:00
.drone.yml 🎨添加CI 2024-08-20 10:53:02 +08:00
.gitignore 🎨优化 2024-08-22 16:01:00 +08:00
Dockerfile 🐳 2024-08-21 09:22:58 +08:00
go.mod 🐛fix a bug 2024-12-05 14:19:54 +08:00
go.sum 🐛fix a bug 2024-12-05 14:19:54 +08:00
main.go 🎨调整定时任务执行时间,以及启动时间 2024-12-05 11:49:29 +08:00
README.md 📝更新readme 2024-10-15 17:26:10 +08:00

Wireguard-UI

wireguard的管理面板UI

安装(仅提供docker方式)

OS X & Linux & Windows:

# 先要创建一个配置文件 app.yaml
http:
  port: 6687
  endpoint: localhost:3100,localhost:6687

database:
  driver: sqlite    # sqlite时只填写db即可目前仅支持sqlite | mysql | pgsql
  host:
  port:
  user:
  password:
  db: wg

cache:
  type: redis               # 缓存类型 暂时仅支持redis
  host: 192.168.1.1
  port: 6379
  password: pGhQKwj7DE7FbFL1
  db: 15

file:
  type: oss                      # 文件类型支持本地文件存储与阿里云oss存储
  path: test/                           # oss填写前缀目录
  endpoint:                        # oss必填
  accessId:                      # oss必填
  accessSecret:                  # oss必填
  bucketName:                    # oss必填

# 一些系统配置
wireguard:
  restartMode: DELAY
  delayTime: 20
  
# 其中依赖了redis等自行安装一个即可
# 创建docker-compose.yaml
version: "3"

services:
  wg:
    image: gitea.mrx.ltd/go-pkg/wireguard-srv:2.1.0
    container_name: wg-srv
    restart: always
    cap_add:
      - NET_ADMIN
    network_mode: host
    logging:
      driver: json-file
      options:
        max-size: 50m
    volumes:
      - ./app.yaml:/app/app.yaml
      - ./db:/app/db
      - ./logs:/app/logs  
      - /etc/wireguard:/etc/wireguard
      - /etc/localtime:/etc/localtime  
默认账户密码
账户: admin
密码: admin123

配置示例

  1. 邮箱配置如下:
     code: EMAIL_SMTP
     配置项:
        1. host: "xxxx.xxx"
        2. port: "123"
        3. user: "haha"
        4. password: "haha123"
        5. skipTls: "false"

页面展示

img.png img_1.png img_7.png img_8.png img_2.png img_3.png img_4.png img_5.png img_6.png