Add settings for DockerCompose
This commit is contained in:
parent
ea5cb89121
commit
5aa5c2b183
@ -30,7 +30,6 @@ public class Startup
|
|||||||
.Get<LocalizerConfiguration>();
|
.Get<LocalizerConfiguration>();
|
||||||
Localizer.Initialize(localizerConfiguration);
|
Localizer.Initialize(localizerConfiguration);
|
||||||
services.AddSingleton<ILocalizer, Localizer>();
|
services.AddSingleton<ILocalizer, Localizer>();
|
||||||
|
|
||||||
services.AddAppServices(Configuration);
|
services.AddAppServices(Configuration);
|
||||||
|
|
||||||
services.AddSingleton<ICurrentDateProvider, DefaultCurrentDateProvider>();
|
services.AddSingleton<ICurrentDateProvider, DefaultCurrentDateProvider>();
|
||||||
|
|||||||
@ -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": {
|
"RebusRabbitMqOptions": {
|
||||||
"ConnectionString": "amqp://admin:admin@nocr-rabbitmq:5672/"
|
"ConnectionString": "amqp://admin:admin@nocr-rabbitmq:5672/"
|
||||||
},
|
},
|
||||||
"UsersRestEaseOptions": {
|
"UsersRestEaseOptions": {
|
||||||
"BasePath": "http://nocr-users:80"
|
"BasePath": "http://nocr-users:8080"
|
||||||
},
|
},
|
||||||
"TextMatcherRestEaseOptions": {
|
"TextMatcherRestEaseOptions": {
|
||||||
"BasePath": "http://nocr-text-matcher:80"
|
"BasePath": "http://nocr-text-matcher:8080"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user