{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning", "Yarp.ReverseProxy": "Information" } }, "AllowedHosts": "*", "Cors": { "AllowedOrigins": [ "http://localhost:5173", "http://127.0.0.1:5173", "http://localhost:5174" ], "AllowAnyOrigin": false }, "ConnectionStrings": { "DefaultConnection": "Host=192.168.100.10;Port=5432;Database=fengling_gateway;Username=movingsam;Password=sl52788542" }, "Jwt": { "Authority": "https://your-auth-server.com", "Audience": "fengling-gateway", "ValidateIssuer": true, "ValidateAudience": true }, "Redis": { "ConnectionString": "192.168.100.10:6379", "Database": 0, "InstanceName": "YarpGateway" }, "ReverseProxy": { "Routes": {}, "Clusters": {} }, "Serilog": { "Using": ["Serilog.Sinks.Console", "Serilog.Sinks.File"], "MinimumLevel": "Information", "WriteTo": [ { "Name": "Console", "Args": { "outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}" } }, { "Name": "File", "Args": { "path": "logs/gateway-.log", "rollingInterval": "Day", "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}" } } ], "Enrich": ["FromLogContext", "WithMachineName", "WithThreadId"] }, "Kestrel": { "Endpoints": { "Http": { "Url": "http://0.0.0.0:8080" } } } }