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