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
-3
View File
@@ -10,9 +10,6 @@ upload_path = "uploads"
[zenoh]
json5_path = "./config/zenoh_config.json5"
[scheduler]
job_store_path = "scheduler_jobs.db"
[cache]
backend = "diskcache" # "diskcache"(默认) | "redis"
cache_store_path = "./cache_data"
+7 -9
View File
@@ -10,17 +10,13 @@ upload_path = "uploads"
[zenoh]
json5_path = "./config/zenoh_config.json5"
[scheduler]
job_store_path = "scheduler_jobs.db"
[cache]
backend = "diskcache"
cache_store_path = "./"
launch_worker_count = "cache"
[security]
access_token_expire_minutes = 30
algorithm = "HS256"
max_sessions_per_user = 5
refresh_token_expire_days = 7
secret_key = "your-secret-key-change-in-production"
[production]
@@ -41,12 +37,14 @@ file = "logs"
format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
level = "INFO"
max_size = 10485760 # 10MB
access_sample_rate = 0.1
[production.cors]
allow_credentials = true
allow_headers = ["*"]
allow_methods = ["*"]
allow_origins = ["*"]
allow_headers = ["Content-Type", "Authorization", "Accept"]
allow_methods = ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
allow_origins = ["http://localhost:5173", "http://127.0.0.1:5173"]
max_age = 600
[production.mqtt]
enabled = true