modify: public 配置变更
This commit is contained in:
+1
-4
@@ -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"
|
||||
type = "module-bank"
|
||||
|
||||
+7
-9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user