Files
pos-system/services/chat-service-net/src/ChatService.API/appsettings.json

58 lines
1.8 KiB
JSON

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore": "Warning"
}
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.EntityFrameworkCore": "Warning",
"System": "Warning"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj} {Properties:j}{NewLine}{Exception}"
}
}
],
"Enrich": [
"FromLogContext",
"WithMachineName",
"WithThreadId"
]
},
"ConnectionStrings": {
"DefaultConnection": "Host=ep-holy-glitter-a4hongg7-pooler.us-east-1.aws.neon.tech;Database=chat_service;Username=neondb_owner;Password=npg_Ssfy6HKO0cXI;SSL Mode=Require",
"Redis": "localhost:6379"
},
"SignalR": {
"EnableMessagePack": true,
"StatefulReconnectBufferSize": 32768,
"KeepAliveInterval": 15,
"ClientTimeoutInterval": 30
},
"AI": {
"Provider": "OpenAI",
"Model": "gpt-4",
"MaxHistoryMessages": 20,
"MaxTokens": 1000,
"Temperature": 0.7,
"SystemPrompt": "You are a helpful assistant in a chat application. Respond concisely and helpfully."
},
"Jwt": {
"Secret": "your-super-secret-key-min-32-characters",
"Issuer": "goodgo-platform",
"Audience": "goodgo-services",
"AccessTokenExpiryMinutes": 15,
"RefreshTokenExpiryDays": 7
},
"AllowedHosts": "*"
}