modify: public 配置变更

This commit is contained in:
2026-08-27 10:13:03 +08:00
parent 378128fc16
commit eb2529e6c3
2 changed files with 8 additions and 13 deletions
+1 -4
View File
@@ -10,9 +10,6 @@ upload_path = "uploads"
[zenoh] [zenoh]
json5_path = "./config/zenoh_config.json5" json5_path = "./config/zenoh_config.json5"
[scheduler]
job_store_path = "scheduler_jobs.db"
[cache] [cache]
backend = "diskcache" # "diskcache"(默认) | "redis" backend = "diskcache" # "diskcache"(默认) | "redis"
cache_store_path = "./cache_data" cache_store_path = "./cache_data"
@@ -148,4 +145,4 @@ path = [
["resources/app.mbank", "src/chongming/app", "app"], ["resources/app.mbank", "src/chongming/app", "app"],
["resources/plugins.mbank", "src/plugins", "plugins"], ["resources/plugins.mbank", "src/plugins", "plugins"],
] ]
type = "module-bank" type = "module-bank"
+7 -9
View File
@@ -10,17 +10,13 @@ upload_path = "uploads"
[zenoh] [zenoh]
json5_path = "./config/zenoh_config.json5" json5_path = "./config/zenoh_config.json5"
[scheduler]
job_store_path = "scheduler_jobs.db"
[cache] [cache]
backend = "diskcache"
cache_store_path = "./" cache_store_path = "./"
launch_worker_count = "cache"
[security] [security]
access_token_expire_minutes = 30
algorithm = "HS256" algorithm = "HS256"
max_sessions_per_user = 5
refresh_token_expire_days = 7
secret_key = "your-secret-key-change-in-production" secret_key = "your-secret-key-change-in-production"
[production] [production]
@@ -41,12 +37,14 @@ file = "logs"
format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s" format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
level = "INFO" level = "INFO"
max_size = 10485760 # 10MB max_size = 10485760 # 10MB
access_sample_rate = 0.1
[production.cors] [production.cors]
allow_credentials = true allow_credentials = true
allow_headers = ["*"] allow_headers = ["Content-Type", "Authorization", "Accept"]
allow_methods = ["*"] allow_methods = ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
allow_origins = ["*"] allow_origins = ["http://localhost:5173", "http://127.0.0.1:5173"]
max_age = 600
[production.mqtt] [production.mqtt]
enabled = true enabled = true