diff --git a/src/Nocr.TelegramClient.Host/Infrastructure/Startup.cs b/src/Nocr.TelegramClient.Host/Infrastructure/Startup.cs index db509f5..a27a1be 100644 --- a/src/Nocr.TelegramClient.Host/Infrastructure/Startup.cs +++ b/src/Nocr.TelegramClient.Host/Infrastructure/Startup.cs @@ -30,7 +30,6 @@ public class Startup .Get(); Localizer.Initialize(localizerConfiguration); services.AddSingleton(); - services.AddAppServices(Configuration); services.AddSingleton(); diff --git a/src/Nocr.TelegramClient.Host/appsettings.DockerCompose.json b/src/Nocr.TelegramClient.Host/appsettings.DockerCompose.json index 221c4c2..fc8ff6f 100644 --- a/src/Nocr.TelegramClient.Host/appsettings.DockerCompose.json +++ b/src/Nocr.TelegramClient.Host/appsettings.DockerCompose.json @@ -1,11 +1,34 @@ { + "Serilog": { + "MinimumLevel": { + "Default": "Information" + }, + "WriteTo": [ + { + "Name": "Console", + "Args": { + "outputTemplate": "[{Level:u3}] {Timestamp:MM-dd HH:mm:ss} {TraceId} {SourceContext:l} {Message:lj}{NewLine}{Exception}" + } + }, + { + "Name": "File", + "Args": { + "path": "/var/log/nocr/telegram-client/telegram-client-.log", + "outputTemplate": "[{Level:u3}] {Timestamp:dd-MM-yyyy HH:mm:ss} {TraceId} {SourceContext:l} {Message:lj}{NewLine}{Exception}", + "fileSizeLimitBytes": 104857600, + "rollingInterval": "Day", + "rollOnFileSizeLimit": true + } + } + ] + }, "RebusRabbitMqOptions": { "ConnectionString": "amqp://admin:admin@nocr-rabbitmq:5672/" }, "UsersRestEaseOptions": { - "BasePath": "http://nocr-users:80" + "BasePath": "http://nocr-users:8080" }, "TextMatcherRestEaseOptions": { - "BasePath": "http://nocr-text-matcher:80" + "BasePath": "http://nocr-text-matcher:8080" } } \ No newline at end of file