diff --git a/src/Nocr.TelegramListener.Host/Nocr.TelegramListener.Host.csproj b/src/Nocr.TelegramListener.Host/Nocr.TelegramListener.Host.csproj index 59ce6e8..6affed2 100644 --- a/src/Nocr.TelegramListener.Host/Nocr.TelegramListener.Host.csproj +++ b/src/Nocr.TelegramListener.Host/Nocr.TelegramListener.Host.csproj @@ -23,6 +23,11 @@ .dockerignore + + true + PreserveNewest + PreserveNewest + diff --git a/src/Nocr.TelegramListener.Host/appsettings.DockerCompose.json b/src/Nocr.TelegramListener.Host/appsettings.DockerCompose.json new file mode 100644 index 0000000..9d8e995 --- /dev/null +++ b/src/Nocr.TelegramListener.Host/appsettings.DockerCompose.json @@ -0,0 +1,28 @@ +{ + "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-listener/telegram-listener-.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/" + } +} \ No newline at end of file diff --git a/src/Nocr.TelegramListener.Host/appsettings.Production.json b/src/Nocr.TelegramListener.Host/appsettings.Production.json index 67adcb6..6e77733 100644 --- a/src/Nocr.TelegramListener.Host/appsettings.Production.json +++ b/src/Nocr.TelegramListener.Host/appsettings.Production.json @@ -13,7 +13,7 @@ { "Name": "File", "Args": { - "path": "/var/log/nocr/text-matcher/nocr-text-matcher-.log", + "path": "/var/log/nocr/telegram-listener/telegram-listener-.log", "outputTemplate": "[{Level:u3}] {Timestamp:dd-MM-yyyy HH:mm:ss} {TraceId} {SourceContext:l} {Message:lj}{NewLine}{Exception}", "fileSizeLimitBytes": 104857600, "rollingInterval": "Day", diff --git a/src/Nocr.TelegramListener.Host/appsettings.k8s.json b/src/Nocr.TelegramListener.Host/appsettings.k8s.json index f9c6818..aada430 100644 --- a/src/Nocr.TelegramListener.Host/appsettings.k8s.json +++ b/src/Nocr.TelegramListener.Host/appsettings.k8s.json @@ -13,7 +13,7 @@ { "Name": "File", "Args": { - "path": "/var/log/nocr/text-matcher/nocr-text-matcher-.log", + "path": "/var/log/nocr/telegram-listener/telegram-listener-.log", "outputTemplate": "[{Level:u3}] {Timestamp:dd-MM-yyyy HH:mm:ss} {TraceId} {SourceContext:l} {Message:lj}{NewLine}{Exception}", "fileSizeLimitBytes": 104857600, "rollingInterval": "Day",