1
0

Update Apps

This commit is contained in:
pooneyy
2025-06-13 18:53:10 +08:00
parent be08a5b4b7
commit e5678a3ec6
437 changed files with 3533 additions and 1195 deletions

View File

@@ -0,0 +1,7 @@
CONTAINER_NAME="uuwaf"
MYSQL_MAX_CONNECTIONS=512
PANEL_APP_PORT_CONSOLE=4443
PANEL_APP_PORT_HTTP=80
PANEL_APP_PORT_HTTPS=443
PANEL_DB_USER_PASSWORD="Safe3.WAF"
TIME_ZONE="Asia/Shanghai"

47
apps/uuwaf/6.8.0/data.yml Normal file
View File

@@ -0,0 +1,47 @@
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: "Safe3.WAF"
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
required: true
rule: paramComplexity
type: password
- default: "512"
edit: true
envKey: MYSQL_MAX_CONNECTIONS
labelEn: MySQL Max Connections
labelZh: 数据库最大连接数
required: true
type: number

View File

@@ -0,0 +1,58 @@
services:
uuwaf:
image: "uusec/nanqiang:v6.8.0"
ulimits:
nproc: 65535
nofile:
soft: 102400
hard: 102400
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:80
- ${PANEL_APP_PORT_HTTPS}:443
- ${PANEL_APP_PORT_CONSOLE}:4443
volumes:
- wafshared:/uuwaf
- /etc/localtime:/etc/localtime:ro
command: ["/run.sh"]
environment:
- TZ=${TIME_ZONE}
- UUWAF_MYSQL_PASSWORD=${PANEL_DB_USER_PASSWORD}
links:
- wafdb
depends_on:
wafdb:
condition: service_healthy
wafdb:
image: "percona/percona-server:8.4.5"
container_name: ${CONTAINER_NAME}-db
restart: always
networks:
- 1panel-network
volumes:
- wafshared:/docker-entrypoint-initdb.d
- wafdata:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
- ./low-memory-my.cnf:/etc/mysql/my.cnf
environment:
- TZ=${TIME_ZONE}
- INIT_ROCKSDB
- MYSQL_MAX_CONNECTIONS=${MYSQL_MAX_CONNECTIONS}
- MYSQL_ROOT_PASSWORD=${PANEL_DB_USER_PASSWORD}
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"]
start_period: 3s
interval: 5s
timeout: 3s
retries: 7
volumes:
wafshared:
name: wafshared
wafdata:
name: wafdata
networks:
1panel-network:
external: true

View File

@@ -0,0 +1,63 @@
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
[mysqld]
#
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
#
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
#
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
skip-host-cache
skip-name-resolve
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
secure-file-priv=/var/lib/mysql-files
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
#### These optimize the memory use of MySQL
#### http://www.tocker.ca/2014/03/10/configuring-mysql-to-use-minimal-memory.html
innodb_buffer_pool_size=5M
innodb_log_buffer_size=256K
query_cache_size=0
max_connections=10
key_buffer_size=8
thread_cache_size=0
host_cache_size=0
innodb_ft_cache_size=1600000
innodb_ft_total_cache_size=32000000
# per thread or per operation settings
thread_stack=131072
sort_buffer_size=32K
read_buffer_size=8200
read_rnd_buffer_size=8200
max_heap_table_size=16K
tmp_table_size=1K
bulk_insert_buffer_size=0
join_buffer_size=128
net_buffer_length=1K
innodb_sort_buffer_size=64K
#settings that relate to the binary log (if enabled)
binlog_cache_size=4K
binlog_stmt_cache_size=4K
#### from https://mariadb.com/de/node/579
performance_schema = off

View File

@@ -0,0 +1,3 @@
#!/bin/bash
docker-compose down --volumes