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="uuwaf"
PANEL_APP_PORT_CONSOLE="4443"
PANEL_APP_PORT_HTTP="80"
PANEL_APP_PORT_HTTPS="443"
SUBNET_PREFIX="172.22.0"
TIME_ZONE="Asia/Shanghai"

40
apps/uuwaf/2.5.2/data.yml Normal file
View File

@@ -0,0 +1,40 @@
additionalProperties:
formFields:
- default: 80
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port
labelZh: HTTP端口
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: 4443
edit: true
envKey: PANEL_APP_PORT_CONSOLE
labelEn: Console Port
labelZh: 控制台端口
required: true
rule: paramPort
type: number
- default: Asia/Shanghai
edit: true
envKey: TIME_ZONE
labelEn: Time zone
labelZh: 时区
required: true
type: text
- default: 172.22.0
edit: true
envKey: SUBNET_PREFIX
labelEn: Subnet prefix
labelZh: 子网前缀
required: true
type: text

View File

@@ -0,0 +1,63 @@
version: '3'
services:
uuwaf:
build: ./docker/
ulimits:
nproc: 65535
nofile:
soft: 102400
hard: 102400
container_name: ${CONTAINER_NAME}-uuwaf
networks:
1panel-network:
wafnet:
ipv4_address: ${SUBNET_PREFIX}.3
ports:
- "${PANEL_APP_PORT_HTTP}:80"
- "${PANEL_APP_PORT_HTTPS}:443"
- "${PANEL_APP_PORT_CONSOLE}:4443"
volumes:
- ./uuwaf:/uuwaf
command: ["/run.sh"]
environment:
- TZ=${TIME_ZONE}
labels:
createdBy: "Apps"
links:
- wafdb
depends_on:
- wafdb
wafdb:
image: percona:8
container_name: ${CONTAINER_NAME}-wafdb
networks:
1panel-network:
wafnet:
ipv4_address: ${SUBNET_PREFIX}.7
#ports:
#- "127.0.0.1:4306:3306"
volumes:
- ./uuwaf/initdb:/docker-entrypoint-initdb.d
- wafdata:/var/lib/mysql
environment:
- TZ=${TIME_ZONE}
- INIT_ROCKSDB
- MYSQL_ROOT_PASSWORD=Safe3.WAF
labels:
createdBy: "Apps"
volumes:
wafdata:
networks:
1panel-network:
external: true
wafnet:
name: wafnet
driver: bridge
ipam:
driver: default
config:
- gateway: ${SUBNET_PREFIX:?SUBNET_PREFIX required}.1
subnet: ${SUBNET_PREFIX}.0/24

View File

@@ -0,0 +1,15 @@
#!/bin/sh
mkdir -p ./tmp
wget -O ./tmp/waf-community.tgz https://github.com/Safe3/uuWAF/releases/download/v2.5.2/waf-docker-community.v2.5.2.tgz
tar -zxvf ./tmp/waf-community.tgz -C ./tmp
cp -r ./tmp/waf-community/docker .
cp -r ./tmp/waf-community/uuwaf .
rm -r ./tmp
echo 附件已经下载成功