-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathappsettings.json
134 lines (134 loc) · 4.26 KB
/
appsettings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"Serilog": {
"Using": ["Serilog.Sinks.File"],
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.AspNetCore.Authentication": "Information",
"Microsoft.AspNetCore.DataProtection": "Debug",
"System": "Warning"
}
},
"WriteTo": [
{
"Name": "File",
"Args": {
"path": "Logs/identityapp-.log",
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact",
"rollingInterval": "Month"
}
}
],
"Enrich": ["FromLogContext", "WithThreadId", "WithExceptionDetails"]
},
"ConnectionStrings": {
"MasterDatabase": "Host=localhost; Port=5432; Database=master_logistics; Username=postgres; Password=Test12345#",
"DefaultTenantDatabase": "Host=localhost; Port=5432; Database=default_logistics; Username=postgres; Password=Test12345#"
},
"TenantsDatabaseConfig": {
"DatabaseNameTemplate": "{tenant}_logistics",
"DatabaseHost": "localhost",
"DatabaseUserId": "postgres",
"DatabasePassword": "Test12345#"
},
"GoogleRecaptchaConfig": {
"SiteKey": "<Google captcha site key>",
"SecretKey": "<Google captcha secret key>"
},
"SmtpConfig": {
"SenderEmail": "<Email address>",
"SenderName": "Logistics NoReply",
"UserName": "<Email account username>",
"Password": "<Email account password>",
"Host": "<Server address>",
"Port": 587
},
"IdentityServer": {
"Clients": [
{
"Enabled": true,
"ClientId": "logistics.adminapp",
"ClientName": "Logistics Admin App",
"RequireClientSecret": false,
"ClientSecrets": [
{ "Value": "podgJhxarjPStKg//sl7yEmltkC45CX5prc3hiftM64=" }
], //Super secret key 1
"AllowedGrantTypes": ["authorization_code"],
"AccessTokenLifetime": 259200,
"IdentityTokenLifetime": 86400,
"RedirectUris": [
"https://localhost:7002/signin-oidc",
"https://localhost:7002/authentication/login-callback",
"https://logistics-admin.suxrobgm.net/signin-oidc",
"https://logistics-admin.suxrobgm.net/authentication/login-callback"
],
"PostLogoutRedirectUris": [
"https://localhost:7002/signout-callback-oidc",
"https://logistics-admin.suxrobgm.net/signout-callback-oidc"
],
"AllowOfflineAccess": true,
"AllowedScopes": [
"openid",
"profile",
"roles",
"tenant",
"logistics.api.admin"
]
},
{
"Enabled": true,
"ClientId": "logistics.officeapp",
"ClientName": "Logistics Office App",
"RequireClientSecret": false,
"ClientSecrets": [
{ "Value": "P+qvToDAkDt/qh6UyimOxVQASSUlE9MJRrWWzrCHfEM=" }
], //Super secret key 2
"AccessTokenLifetime": 259200,
"IdentityTokenLifetime": 86400,
"AllowedGrantTypes": ["authorization_code"],
"RedirectUris": [
"http://localhost:7003",
"https://localhost:7003",
"https://logistics-office.suxrobgm.net"
],
"PostLogoutRedirectUris": [
"http://localhost:7003",
"https://localhost:7003",
"https://logistics-office.suxrobgm.net"
],
"AllowOfflineAccess": true,
"AllowedScopes": [
"openid",
"profile",
"roles",
"tenant",
"logistics.api.tenant"
]
},
{
"Enabled": true,
"ClientId": "logistics.driverapp",
"ClientName": "Logistics Driver App",
"RequireClientSecret": false,
"ClientSecrets": [
{ "Value": "P+qvToDAkDt/qh6UyimOxVQASSUlE9MJRrWWzrCHfEM=" }
], //Super secret key 2
"AccessTokenLifetime": 259200,
"IdentityTokenLifetime": 86400,
"AllowedGrantTypes": ["authorization_code"],
"RedirectUris": ["logistics-driver://callback"],
"PostLogoutRedirectUris": ["logistics-driver://callback"],
"AllowOfflineAccess": true,
"AllowedScopes": [
"openid",
"profile",
"roles",
"tenant",
"logistics.api.tenant"
]
}
]
}
}