chore: initial commit
This commit is contained in:
43
installer/conf/cordys-crm.properties
Executable file
43
installer/conf/cordys-crm.properties
Executable file
@@ -0,0 +1,43 @@
|
||||
logger.sql.level=info
|
||||
management.endpoints.enabled-by-default=false
|
||||
springdoc.api-docs.groups.enabled=true
|
||||
spring.freemarker.check-template-location=false
|
||||
spring.groovy.template.check-template-location=false
|
||||
|
||||
# 默认 all in one 配置,单机环境使用
|
||||
mysql.embedded.enabled=true
|
||||
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/cordys-crm?autoReconnect=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&sessionVariables=sql_mode=%27STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION%27
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=CordysCRM@mysql
|
||||
spring.session.timeout=30d
|
||||
|
||||
redis.embedded.enabled=true
|
||||
spring.data.redis.host=127.0.0.1
|
||||
spring.data.redis.password=CordysCRM@redis
|
||||
spring.data.redis.port=6379
|
||||
spring.session.redis.repository-type=indexed
|
||||
|
||||
# MCP Server 配置
|
||||
mcp.embedded.enabled=true
|
||||
cordys.crm.url=http://127.0.0.1:8081
|
||||
spring.mvc.async.request-timeout=60000
|
||||
spring.ai.mcp.server.type=ASYNC
|
||||
spring.ai.mcp.server.name=cordys-crm-mcp-server
|
||||
spring.ai.mcp.server.version=1.0.0
|
||||
|
||||
# SQLBot 默认获取 spring.datasource 配置访问数据库,支持自定义配置只读用户
|
||||
# sqlbot.datasource.username=Read-only-user
|
||||
# sqlbot.datasource.password=CordysCRM@mysql
|
||||
|
||||
# 支持加密 API /db/structure 返回的敏感数据,默认 false
|
||||
# sqlbot.encrypt=false
|
||||
# sqlbot.aes-key=your-aes-key
|
||||
# sqlbot.aes-iv=your-aes-iv
|
||||
|
||||
# Enable whitelist functionality, if not enabled, access will not be restricted.
|
||||
allowed.ip.ranges.enabled=false
|
||||
# Enable whitelist functionality, if not enabled, access will not be restricted.
|
||||
allowed.ip.ranges=
|
||||
|
||||
# List of URLs that require XSS filtering, supports Ant-style path matching, e.g., /api/**. If no URLs need to be filtered, it can be left empty.
|
||||
xss.protection.url.list=/account/follow/**,/announcement/add
|
||||
36
installer/conf/mysql/my.cnf
Executable file
36
installer/conf/mysql/my.cnf
Executable file
@@ -0,0 +1,36 @@
|
||||
[mysqld]
|
||||
datadir=/opt/cordys/data/mysql
|
||||
|
||||
default-storage-engine=INNODB
|
||||
character_set_server=utf8mb4
|
||||
lower_case_table_names=1
|
||||
performance_schema=off
|
||||
table_open_cache=128
|
||||
transaction_isolation=READ-COMMITTED
|
||||
max_connections=1000
|
||||
max_connect_errors=6000
|
||||
max_allowed_packet=64M
|
||||
innodb_file_per_table=1
|
||||
innodb_buffer_pool_size=256M
|
||||
innodb_lock_wait_timeout=1800
|
||||
|
||||
server-id=1
|
||||
log-bin=mysql-bin
|
||||
expire_logs_days = 2
|
||||
binlog_format=mixed
|
||||
|
||||
character-set-client-handshake = FALSE
|
||||
character-set-server=utf8mb4
|
||||
collation-server=utf8mb4_general_ci
|
||||
init_connect='SET default_collation_for_utf8mb4=utf8mb4_general_ci'
|
||||
|
||||
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
|
||||
|
||||
skip-name-resolve
|
||||
|
||||
!includedir /etc/mysql/conf.d
|
||||
[mysql]
|
||||
default-character-set=utf8mb4
|
||||
|
||||
[mysql.server]
|
||||
default-character-set=utf8mb4
|
||||
2051
installer/conf/redis/redis.conf
Executable file
2051
installer/conf/redis/redis.conf
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user