Skip to content

Commit 4651f32

Browse files
chore: app config
1 parent 41a0e6c commit 4651f32

13 files changed

Lines changed: 55 additions & 162 deletions

src/2-Clients/AdminPanel/Properties/launchSettings.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
"dotnetRunMessages": true,
77
"launchBrowser": true,
88
"launchUrl": "",
9-
"applicationUrl": "http://localhost:5141",
9+
"applicationUrl": "http://localhost:50001",
1010
"environmentVariables": {
11-
"ASPNETCORE_ENVIRONMENT": "Development",
12-
"Licensing__PrivateKeyFilePath": "C:/Users/Hamed Shirbandi/OneDrive/Documents/Startups/CodeBlock-Dev/keys/codeblock.dev.license.private.key"
13-
11+
"ASPNETCORE_ENVIRONMENT": "Development"
1412
}
1513
}
1614
}

src/2-Clients/AdminPanel/appsettings.Development.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"DetailedErrors": true,
33
"Application": {
44
"Default": {
5-
"Url": "http://localhost:50001",
5+
"Url": "http://localhost:50001"
66
}
77
},
88
"MongoDB": {

src/2-Clients/AdminPanel/appsettings.Staging.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/2-Clients/AdminPanel/appsettings.json

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -59,33 +59,33 @@
5959
"ExternalLogins": {
6060
"Google": {
6161
"Enabled": true,
62-
"ClientId": "361890719385-7cats03q7udecm04f2kor903q4ub7id8.apps.googleusercontent.com",
63-
"ClientSecret": "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",
62+
"ClientId": "XXXXXXXXXXX",
63+
"ClientSecret": "XXXXXXXXXXX",
6464
"CallbackPath": "/signin-google"
6565
},
6666
"Twitter": {
6767
"Enabled": true,
68-
"ConsumerKey": "X5qics8vMtAITsozutZXH3QNC",
69-
"ConsumerSecret": "OAPey6pd73IecqMEutYJ274YSxdkOTJgYs6k7sJ3vqFbxMiz1S",
68+
"ConsumerKey": "XXXXXXXXXXX",
69+
"ConsumerSecret": "XXXXXXXXXXX",
7070
"CallbackPath": "/signin-twitter"
7171
},
7272
"Microsoft": {
7373
"Enabled": true,
74-
"ClientId": "ca324dd3-7916-45ea-b7da-ab557b86344c",
75-
"ClientSecret": "hfX8Q~mlGrfz4jSGLyyD2PoE4oHA6C2-Juhykc.o",
74+
"ClientId": "XXXXXXXXXXX",
75+
"ClientSecret": "XXXXXXXXXXX",
7676
"CallbackPath": "/signin-microsoft"
7777
},
7878
"Facebook": {
7979
"Enabled": true,
80-
"AppId": "your-facebook-client-id",
81-
"AppSecret": "your-facebook-client-sec",
80+
"AppId": "XXXXXXXXXXX",
81+
"AppSecret": "XXXXXXXXXXX",
8282
"CallbackPath": "/signin-facebook"
8383
}
8484
}
8585
},
8686
"CookieAuthentication": {
8787
"Enabled": true,
88-
"CookieName": "Can.Be.Yours.AdminPanel.AuthCookie",
88+
"CookieName": "CanBeYours.AdminPanel.AuthCookie",
8989
"CookieHttpOnly": true,
9090
"LoginPath": "/login",
9191
"LogoutPath": "/logout",
@@ -94,7 +94,7 @@
9494
"AllowRefresh": true
9595
},
9696
"Localization": {
97-
"CookieName": "Can.Be.Yours.AdminPanel.Culture",
97+
"CookieName": "CanBeYours.AdminPanel.Culture",
9898
"Languages": [
9999
{
100100
"Name": "English",
@@ -159,22 +159,6 @@
159159
"EnableMemoryCache": true,
160160
"EnableDiskCache": false,
161161
"AllowEmptyBundle": true
162-
//"BundledCssFiles": [
163-
// {
164-
// "BundledFile": "/css/test.min.css",
165-
// "FilesToBundle": [
166-
// "css/app.css"
167-
// ]
168-
// }
169-
//],
170-
//"BundledJsFiles": [
171-
// {
172-
// "BundledFile": "/js/test.min.js",
173-
// "FilesToBundle": [
174-
// "js/app.js"
175-
// ]
176-
// }
177-
//]
178162
},
179163
"Hangfire": {
180164
"SchedulePollingIntervalSeconds": 15000,
@@ -188,7 +172,7 @@
188172
},
189173
"Monitoring": {
190174
"Service": {
191-
"Name": "Can.Be.Yours.AdminPanel",
175+
"Name": "CanBeYours.AdminPanel",
192176
"HealthCheckPath": "/health"
193177
},
194178
"Logging": {
@@ -205,7 +189,7 @@
205189
}
206190
},
207191
"Security": {
208-
"EncryptionSymmetricKey": "a7Fq9LmB2XrT4pWz6VcN8KdY",
192+
"EncryptionSymmetricKey": "XXXXXXXXXXX",
209193
"SigningPrivateKeyPath": "GET_FROM_ENVIRONMENT_VARIABLE",
210194
"RateLimiter": {
211195
"Enabled": true,
@@ -220,7 +204,7 @@
220204
"Host": "localhost",
221205
"Port": 6334,
222206
"Https": false,
223-
"ApiKey": "qrp5yV3wxWP0a8HJcPhwdNP7g9NuQFQNslqbEuW9VpNSHb3PfULBUs"
207+
"ApiKey": "XXXXXXXXXXX"
224208
}
225209
}
226210
}

src/2-Clients/Api/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dotnetRunMessages": true,
77
"launchBrowser": true,
88
"launchUrl": "",
9-
"applicationUrl": "http://localhost:5142",
9+
"applicationUrl": "http://localhost:50002",
1010
"environmentVariables": {
1111
"ASPNETCORE_ENVIRONMENT": "Development"
1212
}

src/2-Clients/Api/appsettings.Development.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"DetailedErrors": true,
33
"Application": {
44
"Default": {
5-
"Url": "http://localhost:5038"
5+
"Url": "http://localhost:50002"
66
}
77
},
88
"MongoDB": {
99
"Connection": "mongodb://localhost:27017"
1010
},
11-
"Swagger": {
12-
"Enabled": true
11+
"Caching": {
12+
"Enabled": false
1313
}
1414
}

src/2-Clients/Api/appsettings.Staging.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/2-Clients/Api/appsettings.json

Lines changed: 18 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"AllowedHosts": "*",
33
//This needs to be shared with the client application
4-
"ApiKey": "7e93f7a2-2a3b-47d6-b9a9-0e9efabf5c13",
4+
"ApiKey": "XXXXXXXXXXX",
55
"Application": {
66
"Default": {
77
"Name": "Can Be Yours",
88
"SupportEmail": "support@test.com",
99
"LogoUrl": "/images/logos/logo.png",
1010
"FaviconUrl": "/favicon.ico",
11-
"Url": "https://canbeyours.online/"
11+
"Url": "https://api.canbeyours.online/"
1212
},
1313
"Localizations": {
1414
"fa": {
@@ -54,33 +54,33 @@
5454
"ExternalLogins": {
5555
"Google": {
5656
"Enabled": true,
57-
"ClientId": "361890719385-7cats03q7udecm04f2kor903q4ub7id8.apps.googleusercontent.com",
58-
"ClientSecret": "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",
57+
"ClientId": "XXXXXXXXXXX",
58+
"ClientSecret": "XXXXXXXXXXX",
5959
"CallbackPath": "/signin-google"
6060
},
6161
"Twitter": {
6262
"Enabled": true,
63-
"ConsumerKey": "X5qics8vMtAITsozutZXH3QNC",
64-
"ConsumerSecret": "OAPey6pd73IecqMEutYJ274YSxdkOTJgYs6k7sJ3vqFbxMiz1S",
63+
"ConsumerKey": "XXXXXXXXXXX",
64+
"ConsumerSecret": "XXXXXXXXXXX",
6565
"CallbackPath": "/signin-twitter"
6666
},
6767
"Microsoft": {
6868
"Enabled": true,
69-
"ClientId": "ca324dd3-7916-45ea-b7da-ab557b86344c",
70-
"ClientSecret": "hfX8Q~mlGrfz4jSGLyyD2PoE4oHA6C2-Juhykc.o",
69+
"ClientId": "XXXXXXXXXXX",
70+
"ClientSecret": "XXXXXXXXXXX",
7171
"CallbackPath": "/signin-microsoft"
7272
},
7373
"Facebook": {
7474
"Enabled": true,
75-
"AppId": "your-facebook-client-id",
76-
"AppSecret": "your-facebook-client-sec",
75+
"AppId": "XXXXXXXXXXX",
76+
"AppSecret": "XXXXXXXXXXX",
7777
"CallbackPath": "/signin-facebook"
7878
}
7979
}
8080
},
8181
"CookieAuthentication": {
8282
"Enabled": true,
83-
"CookieName": "Can.Be.Yours.Api.AuthCookie",
83+
"CookieName": "CanBeYours.Api.AuthCookie",
8484
"CookieHttpOnly": true,
8585
"LoginPath": "/login",
8686
"LogoutPath": "/logout",
@@ -89,7 +89,7 @@
8989
"AllowRefresh": true
9090
},
9191
"Localization": {
92-
"CookieName": "Can.Be.Yours.Api.Culture",
92+
"CookieName": "CanBeYours.Api.Culture",
9393
"Languages": [
9494
{
9595
"Name": "English",
@@ -148,42 +148,9 @@
148148
"CacheTimeInSeconds": 10,
149149
"Enabled": true
150150
},
151-
"Optimization": {
152-
"Enabled": true,
153-
"EnableCaching": true,
154-
"EnableMemoryCache": true,
155-
"EnableDiskCache": false,
156-
"AllowEmptyBundle": true
157-
//"BundledCssFiles": [
158-
// {
159-
// "BundledFile": "/css/test.min.css",
160-
// "FilesToBundle": [
161-
// "css/app.css"
162-
// ]
163-
// }
164-
//],
165-
//"BundledJsFiles": [
166-
// {
167-
// "BundledFile": "/js/test.min.js",
168-
// "FilesToBundle": [
169-
// "js/app.js"
170-
// ]
171-
// }
172-
//]
173-
},
174-
"Hangfire": {
175-
"SchedulePollingIntervalSeconds": 15000,
176-
"MongoStorage": {
177-
"DatabaseName": "CanBeYours_ScheduledJobs"
178-
},
179-
"Dashboard": {
180-
"Path": "/hangfire",
181-
"Enabled": true
182-
}
183-
},
184151
"Monitoring": {
185152
"Service": {
186-
"Name": "Can.Be.Yours.Api",
153+
"Name": "CanBeYours.Api",
187154
"HealthCheckPath": "/health"
188155
},
189156
"Logging": {
@@ -200,7 +167,7 @@
200167
}
201168
},
202169
"Security": {
203-
"EncryptionSymmetricKey": "a7Fq9LmB2XrT4pWz6VcN8KdY",
170+
"EncryptionSymmetricKey": "XXXXXXXXXXX",
204171
"SigningPrivateKeyPath": "GET_FROM_ENVIRONMENT_VARIABLE",
205172
"RateLimiter": {
206173
"Enabled": true,
@@ -215,18 +182,18 @@
215182
"Host": "localhost",
216183
"Port": 6334,
217184
"Https": false,
218-
"ApiKey": "qrp5yV3wxWP0a8HJcPhwdNP7g9NuQFQNslqbEuW9VpNSHb3PfULBUs"
185+
"ApiKey": "XXXXXXXXXXX"
219186
}
220187
},
221188
"Swagger": {
222-
"Enabled": false,
189+
"Enabled": true,
223190
"Title": "Can Be Yours Api Documentation",
224191
"Version": "v1",
225192
"RedirectRootAddress": true
226193
},
227194
"JwtAuthentication": {
228-
"Key": "Api-25ft53d3-e5b5-49a0-a5b0-cc05a50568wp",
229-
"Issuer": "http://api.test.com",
195+
"Key": "XXXXXXXXXXX",
196+
"Issuer": "https://api.canbeyours.online/",
230197
"ExpireDays": 30
231198
}
232199
}

src/2-Clients/WebApp/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dotnetRunMessages": true,
77
"launchBrowser": true,
88
"launchUrl": "",
9-
"applicationUrl": "http://localhost:5140",
9+
"applicationUrl": "http://localhost:50003",
1010
"environmentVariables": {
1111
"ASPNETCORE_ENVIRONMENT": "Development"
1212
}

src/2-Clients/WebApp/appsettings.Development.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
},
1111
"Optimization": {
1212
"EnableCaching": false
13+
},
14+
"Caching": {
15+
"Enabled": false
1316
}
1417
}

0 commit comments

Comments
 (0)