diff --git a/config.toml b/config.toml index cef57f3..0ee0079 100644 --- a/config.toml +++ b/config.toml @@ -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" @@ -148,4 +145,4 @@ path = [ ["resources/app.mbank", "src/chongming/app", "app"], ["resources/plugins.mbank", "src/plugins", "plugins"], ] -type = "module-bank" \ No newline at end of file +type = "module-bank" diff --git a/public/config.toml b/public/config.toml index 4ec3a40..683d960 100644 --- a/public/config.toml +++ b/public/config.toml @@ -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