mirror of
https://github.com/Stone-Red-Code/EchoHub.git
synced 2026-09-04 17:16:06 +02:00
- Add IrcGatewayService to handle IRC connections and commands. - Create IrcMessage class for parsing IRC protocol lines. - Implement IrcMessageFormatter for formatting messages as IRC lines. - Define IrcNumericReply constants for IRC numeric replies. - Add IrcOptions class for configuration settings related to IRC. - Create IrcServiceExtensions for adding IRC services to the application. - Refactor ChannelsController to use IChatService for broadcasting messages and channel updates. - Update ChatHub to utilize IChatService for user connection and message handling. - Introduce ChatService to manage chat-related operations and interactions. - Implement SignalRBroadcaster for broadcasting messages to SignalR clients. - Update PresenceTracker to retrieve usernames for connections. - Modify appsettings.example.json to include IRC configuration options. - Update solution file to include the new IRC project.
52 lines
1.2 KiB
JSON
52 lines
1.2 KiB
JSON
{
|
|
"Urls": "http://0.0.0.0:5000",
|
|
"ConnectionStrings": {
|
|
"DefaultConnection": ""
|
|
},
|
|
"Jwt": {
|
|
"Secret": "CHANGE_ME_minimum_32_characters_long_secret_key",
|
|
"Issuer": "EchoHub.Server",
|
|
"Audience": "EchoHub.Client"
|
|
},
|
|
"Server": {
|
|
"Name": "My EchoHub Server",
|
|
"Description": "A self-hosted EchoHub chat server",
|
|
"PublicServer": false,
|
|
"PublicHost": ""
|
|
},
|
|
"Irc": {
|
|
"Enabled": false,
|
|
"Port": 6667,
|
|
"TlsEnabled": false,
|
|
"TlsPort": 6697,
|
|
"TlsCertPath": "",
|
|
"TlsCertPassword": "",
|
|
"ServerName": "echohub",
|
|
"Motd": "Welcome to EchoHub IRC Gateway!"
|
|
},
|
|
"Serilog": {
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"Microsoft": "Warning",
|
|
"Microsoft.AspNetCore": "Warning",
|
|
"Microsoft.EntityFrameworkCore": "Warning",
|
|
"System": "Warning"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{ "Name": "Console" },
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "logs/echohub-server-.log",
|
|
"rollingInterval": "Day",
|
|
"retainedFileCountLimit": 14,
|
|
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"AllowedHosts": "*"
|
|
}
|