{ "Environment": "Dev", "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } }, "ConnectionStrings": { "DefaultConnection": "server=192.168.80.81;Database=sjzy_package_setting;Uid=root;Pwd=10c1fb814e7c1552;SslMode=None;Charset=utf8mb4;", "DataCenter": "server=192.168.80.81;Database=sjzy_data_center;Uid=root;Pwd=10c1fb814e7c1552;SslMode=None;Charset=utf8mb4;" }, "Redis": { "ConnectionString": "192.168.80.56:6379,abortConnect=false", "PassWord": "sjzyadmin", "DefaultDatabaseIndex": 8, "Prefix": "" }, "Consul": { "ServiceName": "Package.Setting", "ServiceIP": "192.168.80.55", "ServicePort": 5047, "ServiceHealthCheck": "http://192.168.80.55:5047/HealthCheck", "ConsulAddress": "http://192.168.80.56:8500" }, "CorsPolicy": [ "" ], "Swagger": { "IsEnable": true, "ServiceUrl": "", "JsonUrlPrefix": "", //转发目录前缀,部署服务器时需要配置 /kingmall "ScanPrefix": [ "SJZY" ] //全局扫描程序集或xml文件时只加载以 SJZY 开头的内容 }, "RabbitMQ": { "UserName": "sjzy", "Password": "sjzyadmin", "HostName": "192.168.80.56", "Port": 5672 }, "Custome": { "Setting1": 12, "Setting2": 22 }, "Serilog": { "MinimumLevel": { "Default": "Information", "Override": { "System": "Warning", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information", "Microsoft.EntityFrameworkCore": "Information" } }, "Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ], "WriteTo": [ { "Name": "Console", "Args": { //"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, SystemConsoleTheme.Literate", "outputTemplate": "{NewLine}[{Timestamp:yyyy-MM-dd HH:mm:ss fff} {Level:u3}] {Message:lj}" } }, { "Name": "File", "Args": { "path": "logs/.log", "rollingInterval": "Day", "outputTemplate": "{NewLine}[{Timestamp:yyyy-MM-dd HH:mm:ss,fff} {Level:u3}] {Message:lj}" } }, { "Name": "Elasticsearch", "Args": { "nodeUris": "http://192.168.80.97:9200", "indexFormat": "log_package_setting_{0:yyyy.MM.dd}", "autoRegisterTemplate": true, "autoRegisterTemplateVersion": "ESv7", "connectionGlobalHeaders": "Authorization=Basic ZWxhc3RpYzpzanp5YWRtaW4=;" } } ] }, "OSS": { "AccessKeyId": "LTAI5tJWyx1kgQfk221QFknu", "AccessKeySecret": "0AvP3vyBdwT1pwvLXeqeJ448US8QL8", "Endpoint": "http://oss-cn-shenzhen.aliyuncs.com/", "BucketName": "cams3", "ReturnHttpsUrl": true } }