I第一次提交

This commit is contained in:
zhangzf1119
2025-12-13 23:00:09 +08:00
commit ac08a0b6ff
180 changed files with 28023 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
[mysql]
default-character-set=utf8mb4
[mysqld]
# 基本设置
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
init_connect='SET NAMES utf8mb4'
# 性能优化
innodb_buffer_pool_size=256M
innodb_log_file_size=64M
innodb_flush_log_at_trx_commit=1
innodb_flush_method=O_DIRECT
# 连接设置
max_connections=200
wait_timeout=28800
interactive_timeout=28800
# 日志设置
general_log=0
slow_query_log=1
slow_query_log_file=/var/lib/mysql/mysql-slow.log
long_query_time=2
# 其他设置
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
lower_case_table_names=1

View File

@@ -0,0 +1,11 @@
-- PostgreSQL 初始化脚本
-- 用于向量数据库的初始化
-- 创建向量扩展(如果需要的话)
-- CREATE EXTENSION IF NOT EXISTS vector;
-- 设置默认编码
SET client_encoding = 'UTF8';
-- 创建必要的模式和权限
-- 这里可以添加更多的初始化SQL

37
docker/redis/redis.conf Normal file
View File

@@ -0,0 +1,37 @@
# Redis配置文件 - 适用于Docker环境
# 网络配置
bind 0.0.0.0
port 6379
timeout 0
tcp-keepalive 300
# 内存管理
maxmemory 256mb
maxmemory-policy allkeys-lru
# 持久化
save 900 1
save 300 10
save 60 10000
# 日志
loglevel notice
logfile ""
# 安全
protected-mode no
requirepass ""
# 其他优化
tcp-backlog 511
databases 16
# AOF持久化
appendonly yes
appendfilename "appendonly.aof"
appendfsync everysec
# 慢日志
slowlog-log-slower-than 10000
slowlog-max-len 128