From 0b49fee10340ea40a6762da657239675d3db22f6 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期四, 07 八月 2025 09:41:31 +0800 Subject: [PATCH] feat:权限和请求日志 --- FlexJobApi.Core/settings.json | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 51 insertions(+), 2 deletions(-) diff --git a/FlexJobApi.Core/settings.json b/FlexJobApi.Core/settings.json index 2925db2..c09a197 100644 --- a/FlexJobApi.Core/settings.json +++ b/FlexJobApi.Core/settings.json @@ -1,7 +1,35 @@ { "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json", + "SpecificationDocumentSettings": { + "DocumentTitle": "鐏垫椿鐢ㄥ伐 | 瑙勮寖鍖栨帴鍙�", + "GroupOpenApiInfos": [ + { + "Group": "Default", + "Title": "瑙勮寖鍖栨帴鍙f紨绀�", + "Version": "1.0.0", + "Contact": { + "Name": "瀛欓箯椋�" + } + } + ], + "EnumToNumber": true + }, + "DynamicApiControllerSettings": { + "LowercaseRoute": false, + "KeepName": true, + "AsLowerCamelCase": true, + "ModelToQuery": true + }, + "CorsAccessorSettings": { + "WithExposedHeaders": [ + "access-token", + "x-access-token", + "environment" + ] + }, "AllowedHosts": "*", "FriendlyExceptionSettings": { + "HideErrorCode": true, "DefaultErrorCode": "500", "DefaultErrorMessage": "鏈嶅姟鍣ㄥ紓甯革紝璇疯仈绯荤鐞嗗憳" }, @@ -9,10 +37,10 @@ "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning", - "Microsoft.EntityFrameworkCore": "Information" + "Microsoft.EntityFrameworkCore": "Warning" }, "File": { - "FileName": "Logs/{0:yyyy}-{0:MM}-{0:dd}.log", + "FileName": "Logs/logs{0:yyyy}{0:MM}{0:dd}.txt", "Append": true, "MinimumLevel": "Information", "FileSizeLimitBytes": 0, @@ -23,8 +51,29 @@ } }, "SupplierPassword": "qwe321", + "Consul": { + "Address": "http://localhost:8500/", + "ServiceName": "Local_FlexJobApi", + "ServiceIP": "localhost", + "ServicePort": 53780, + "ServiceHealthCheck": "/healthz" + }, "DistributedCache": { "Access": "Redis", "Configuration": "118.178.252.28:5390,password=Bole123!" + }, + "Aliyun": { + "OSS": { + "AccessKeyId": "LTAI4GAdJ88mUMMFBHHiyDmS", + "AccessSecret": "NX3AmjOcGkJ8bncQfIVxqmifBWkI0E", + "RegionId": "cn-hangzhou", + "Endpoint": "http://oss-cn-hangzhou.aliyuncs.com", + "BucketName": "waterdroptest2", + "Url": "https://waterdroptest2.oss-cn-hangzhou.aliyuncs.com/", + "RoleArn": "acs:ram::1483797030072898:role/boleoss", + "RoleSessionName": "SessionTest", + "Policy": "{\"Version\":\"1\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"oss:PutObject\",\"Resource\":[\"acs:oss:*:*:waterdroptest2/*\",\"acs:oss:*:*:parkmanagement/*\",\"acs:oss:*:*:jurenlian/*\"]}]}", + "DurationSeconds": 3600 + } } } \ No newline at end of file -- Gitblit v1.9.1