Skip to content

Commit a139f8b

Browse files
committed
Fix appsettings.json, appsettings.json.tmpl
1 parent 56b78c8 commit a139f8b

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

SupremeDotnetApiTemplate.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<PackageType>Template</PackageType>
5-
<PackageVersion>1.2.0-rc.1</PackageVersion>
5+
<PackageVersion>1.2.0-rc.2</PackageVersion>
66
<PackageId>Supreme.Dotnet.Api.Template</PackageId>
77
<Title>Supreme API Template</Title>
88
<Authors>Onur Kapçık</Authors>

templates/api/src/Supreme.Api/appsettings.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"Serilog": {
66
"MinimumLevel": "Information",
77
"Override": {
8+
//#if (enable-outbox-pattern)
89
"DotNetCore.CAP.Internal.SubscribeDispatcher": "None",
10+
//#endif
911
"Microsoft": "Warning",
1012
"Microsoft.Hosting.Lifetime": "Information"
1113
},
@@ -24,15 +26,6 @@
2426
"WithThreadId"
2527
]
2628
},
27-
//#if (enable-outbox-pattern)
28-
"RabbitMqSettings": {
29-
"Host": "localhost",
30-
"Port": 5672,
31-
"VirtualHost": "/",
32-
"Username": "guest",
33-
"Password": "guest"
34-
},
35-
//#endif
3629
"ApplicationSettings": {
3730
},
3831
"RedisSettings": {
@@ -42,6 +35,15 @@
4235
"User": "User",
4336
"Password": "Password"
4437
},
38+
//#if (enable-outbox-pattern)
39+
"RabbitMqSettings": {
40+
"Host": "localhost",
41+
"Port": 5672,
42+
"VirtualHost": "/",
43+
"Username": "guest",
44+
"Password": "guest"
45+
},
46+
//#endif
4547
//#if (enable-open-telemetry)
4648
"JaegerSettings": {
4749
"Url": "http://localhost:4317"

templates/api/src/Supreme.Api/appsettings.json.tmpl

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"Serilog": {
66
"MinimumLevel": "Information",
77
"Override": {
8+
//#if (enable-outbox-pattern)
89
"DotNetCore.CAP.Internal.SubscribeDispatcher": "None",
10+
//#endif
911
"Microsoft": "Warning",
1012
"Microsoft.Hosting.Lifetime": "Information"
1113
},
@@ -24,15 +26,6 @@
2426
"WithThreadId"
2527
]
2628
},
27-
//#if (enable-outbox-pattern)
28-
"RabbitMqSettings": {
29-
"Host": "$RABBITMQ_HOST",
30-
"Port": $RABBITMQ_PORT,
31-
"VirtualHost": "$RABBITMQ_VHOST",
32-
"Username": "$RABBITMQ_USERNAME",
33-
"Password": "$RABBITMQ_PASSWORD",
34-
},
35-
//#endif
3629
"ApplicationSettings": {
3730
},
3831
"RedisSettings": {
@@ -42,9 +35,18 @@
4235
"User": "$REDIS_USER",
4336
"Password": "$REDIS_PASSWORD",
4437
},
45-
//#if (enable-open-telemetry)
38+
//#if (enable-outbox-pattern)
39+
"RabbitMqSettings": {
40+
"Host": "$RABBITMQ_HOST",
41+
"Port": $RABBITMQ_PORT,
42+
"VirtualHost": "$RABBITMQ_VHOST",
43+
"Username": "$RABBITMQ_USERNAME",
44+
"Password": "$RABBITMQ_PASSWORD",
45+
},
46+
//#endif
47+
//#if (enable-open-telemetry)
4648
"JaegerSettings": {
47-
"Url": "$JAEGER_HOST",
49+
"Url": "$JAEGER_HOST"
4850
}
49-
//#endif
51+
//#endif
5052
}

0 commit comments

Comments
 (0)