Skip to content

Commit 7a04a08

Browse files
chore: change app name
1 parent 96d111b commit 7a04a08

6 files changed

Lines changed: 363 additions & 369 deletions

File tree

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
22
"DetailedErrors": true,
3-
"MongoDB": {
4-
"DatabaseName": "CodeBlock_Dev_Dev"
3+
"Application": {
4+
"Default": {
5+
"Url": "http://localhost:50001",
6+
}
57
},
6-
"Serilog": {
7-
"WriteTo": [
8-
{
9-
"Name": "Console",
10-
"Args": {
11-
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
12-
}
13-
}
14-
]
8+
"MongoDB": {
9+
"Connection": "mongodb://localhost:27017"
1510
},
1611
"Optimization": {
1712
"EnableCaching": false
13+
},
14+
"Caching": {
15+
"Enabled": false
1816
}
1917
}

src/2-Clients/AdminPanel/appsettings.json

Lines changed: 91 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,44 @@
11
{
22
"AllowedHosts": "*",
3-
"Licensing": {
4-
"PrivateKeyFilePath": "Get_From_Env_Var",
5-
"Plans": [
6-
{
7-
"SystemName": "CodeBlock_Startup_License",
8-
"Level": 0
9-
},
10-
{
11-
"SystemName": "CodeBlock_Business_License",
12-
"Level": 1
13-
},
14-
{
15-
"SystemName": "CodeBlock_Enterprise_License",
16-
"Level": 2
17-
}
18-
]
19-
},
203
"Application": {
214
"Default": {
22-
"Name": "CanBeYours",
5+
"Name": "Can Be Yours",
6+
"Description": "Can Be Yours is a sample startup built with CodeBlock.Dev",
237
"SupportEmail": "support@test.com",
24-
"LogoUrl": "/logo.png",
8+
"LogoUrl": "/images/logos/logo.png",
259
"FaviconUrl": "/favicon.ico",
26-
"Url": "https://admin.canbeyours.online/",
27-
"LoginUrl": "https://admin.canbeyours.online/login"
10+
"Url": "https://admin.canbeyours.online/"
2811
},
2912
"Localizations": {
30-
"fa-IR": {
31-
"Name": "میتونه مال تو باشه!"
13+
"fa": {
14+
"Name": "میتونه مال تو باشه!",
15+
"Description": "میتونه مال تو باشه! یک استارتاپ نمونه است که با CodeBlock.Dev ساخته شده است"
16+
},
17+
"es": {
18+
"Name": "¡Puede ser tuyo!",
19+
"Description": "¡Puede ser tuyo! es una startup de muestra construida con CodeBlock.Dev"
20+
},
21+
"de": {
22+
"Name": "Kann dir gehören!",
23+
"Description": "Kann dir gehören! ist ein Beispiel-Startup, das mit CodeBlock.Dev erstellt wurde"
24+
},
25+
"fr": {
26+
"Name": "Peut être à vous!",
27+
"Description": "Peut être à vous! est une startup d'exemple construite avec CodeBlock.Dev"
28+
},
29+
"pt": {
30+
"Name": "Pode ser seu!",
31+
"Description": "Pode ser seu! é uma startup de exemplo construída com CodeBlock.Dev"
32+
},
33+
"ar": {
34+
"Name": "يمكن أن يكون لك!",
35+
"Description": "يمكن أن يكون لك! هو مشروع ناشئ نموذجي تم بناؤه باستخدام CodeBlock.Dev"
3236
}
3337
}
3438
},
3539
"MongoDB": {
3640
"Connection": "mongodb://localhost:27017",
37-
"DatabaseName": "CodeBlock_Dev"
38-
},
39-
"Email": {
40-
"Enabled": true,
41-
"ActiveEmailProvider": "SendGrid",
42-
"SelfHosted": {
43-
"FromName": "CanBeYours",
44-
"SmtpServer": "mail.codeblock.dev",
45-
"SmtpPort": 587,
46-
"SmtpUser": "support@codeblock.dev",
47-
"SmtpPassword": "hamedHAMED99",
48-
"EnableSsl": false
49-
},
50-
"SendGrid": {
51-
"ApiKey": "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",
52-
"FromEmail": "no-reply@codeblock.dev",
53-
"FromName": "CanBeYours"
54-
}
55-
},
56-
"Sms": {
57-
"Enabled": true,
58-
"Twilio": {
59-
"AccountSid": "AC31b67f6cb216f18393db924eb3d8141e",
60-
"AuthToken": "0a831e63414fc47d5f2e89973d677e75",
61-
"FromPhoneNumber": "+12314128989"
62-
}
63-
},
64-
"Tracking": {
65-
"Enabled": true,
66-
"DaysRetentionLimit": 365,
67-
"MaxRecordsPerEntity": 1000
41+
"DatabaseName": "Can_Be_Yours"
6842
},
6943
"Administration": {
7044
"AdminRole": "admin",
@@ -76,24 +50,12 @@
7650
}
7751
]
7852
},
79-
"Authorization": {
53+
"Identity": {
8054
"AdminUser": {
8155
"Mobile": "+31000000000",
8256
"Email": "admin@test.com",
8357
"Password": "12345678"
8458
},
85-
"Settings": {
86-
"EnableTwoFactor": true,
87-
"EnableMobileConfirmation": true,
88-
"EnableEmailConfirmation": true,
89-
"ForceEmailConfirmationOnRegister": true,
90-
"EnableExternalLogin": true,
91-
"EnableLogin": true,
92-
"EnableRegister": true,
93-
"ShowLogo": true,
94-
"ShowAppName": false,
95-
"SendWelcomeEmailOnRegister": true
96-
},
9759
"ExternalLogins": {
9860
"Google": {
9961
"Enabled": true,
@@ -123,7 +85,7 @@
12385
},
12486
"CookieAuthentication": {
12587
"Enabled": true,
126-
"CookieName": "CanBeYours.CanBeYours.AdminPanel.AuthCookie",
88+
"CookieName": "Can.Be.Yours.AdminPanel.AuthCookie",
12789
"CookieHttpOnly": true,
12890
"LoginPath": "/login",
12991
"LogoutPath": "/logout",
@@ -132,22 +94,60 @@
13294
"AllowRefresh": true
13395
},
13496
"Localization": {
135-
"CookieName": "CanBeYours.CanBeYours.AdminPanel.Culture",
97+
"CookieName": "Can.Be.Yours.AdminPanel.Culture",
13698
"Languages": [
13799
{
138100
"Name": "English",
139-
"Code": "en-US",
101+
"Code": "en",
102+
"ShortName": "En",
140103
"Direction": "ltr",
141104
"Font": "system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"",
142105
"IsDefault": true
143106
},
144107
{
145108
"Name": "Persian",
146-
"Code": "fa-IR",
109+
"Code": "fa",
110+
"ShortName": "Fa",
147111
"Direction": "rtl",
148112
"Font": "Vazir"
113+
},
114+
{
115+
"Name": "Spanish",
116+
"Code": "es",
117+
"ShortName": "Es",
118+
"Direction": "ltr",
119+
"Font": "system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif"
120+
},
121+
{
122+
"Name": "German",
123+
"Code": "de",
124+
"ShortName": "De",
125+
"Direction": "ltr",
126+
"Font": "system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif"
127+
},
128+
{
129+
"Name": "French",
130+
"Code": "fr",
131+
"ShortName": "Fr",
132+
"Direction": "ltr",
133+
"Font": "system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif"
134+
},
135+
{
136+
"Name": "Portuguese",
137+
"Code": "pt",
138+
"ShortName": "Pt",
139+
"Direction": "ltr",
140+
"Font": "system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif"
141+
},
142+
{
143+
"Name": "Arabic",
144+
"Code": "ar",
145+
"ShortName": "Ar",
146+
"Direction": "rtl",
147+
"Font": "system-ui, \"Segoe UI\", \"Helvetica Neue\", Tahoma, Arial, sans-serif"
149148
}
150149
]
150+
151151
},
152152
"Caching": {
153153
"CacheTimeInSeconds": 10,
@@ -159,26 +159,39 @@
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+
//]
162178
},
163179
"Hangfire": {
164180
"SchedulePollingIntervalSeconds": 15000,
165181
"MongoStorage": {
166-
"DatabaseName": "CodeBlock_Dev_ScheduledJobs"
182+
"DatabaseName": "Can_Be_Yours_ScheduledJobs"
167183
},
168184
"Dashboard": {
169185
"Path": "/hangfire",
170186
"Enabled": true
171187
}
172188
},
173189
"Monitoring": {
174-
"Enabled": true,
175190
"Service": {
176-
"Name": "CanBeYours.CanBeYours.AdminPanel",
191+
"Name": "Can.Be.Yours.AdminPanel",
177192
"HealthCheckPath": "/health"
178193
},
179194
"Logging": {
180-
"Enabled": true,
181-
"DaysRetentionLimit": 30,
182195
"IncludeFormattedMessage": true,
183196
"IncludeScopes": true,
184197
"ParseStateValues": true,
@@ -189,14 +202,11 @@
189202
"Hangfire.BackgroundJobServer": "Warning",
190203
"Hangfire.Server.BackgroundServerProcess": "Warning"
191204
}
192-
},
193-
"Metric": {
194-
"Enabled": true,
195-
"DaysRetentionLimit": 30
196205
}
197206
},
198207
"Security": {
199-
"Enabled": true,
208+
"EncryptionSymmetricKey": "a7Fq9LmB2XrT4pWz6VcN8KdY",
209+
"SigningPrivateKeyPath": "GET_FROM_ENVIRONMENT_VARIABLE",
200210
"RateLimiter": {
201211
"Enabled": true,
202212
"PermitLimit": 100,
@@ -205,31 +215,7 @@
205215
"QueueProcessingOrder": "OldestFirst"
206216
}
207217
},
208-
"Pricing": {
209-
"CurrencyCode": "USD",
210-
"Plans": [
211-
{
212-
"Category": "Tutorial_Packages",
213-
"PlansSystemName": [ "Tutorial_Startup_Package" ]
214-
},
215-
{
216-
"Category": "CodeBlock_Licenses",
217-
"PlansSystemName": [ "CodeBlock_Startup_License", "CodeBlock_Business_License", "CodeBlock_Enterprise_License" ]
218-
},
219-
{
220-
"Category": "CodeBlock_AI_Chatbot",
221-
"PlansSystemName": [ "CodeBlock_AIChatbot_Basic", "CodeBlock_AIChatbot_Pro" ]
222-
}
223-
]
224-
},
225-
"Payment": {
226-
"Stripe": {
227-
"SecretKey": "sk_test_51QyLtkA9yU2rlRp4ZGM0s1wk6uToIf2iy9nTf7JRmMlnHZzrKBSPYPeiIa7WZM6tMHHacnCv55kCqCIqYZALFki300TRl2AgQr",
228-
"PublishableKey": "pk_test_51QyLtkA9yU2rlRp4xClDo061jFXoVwt9MkBBINOhHxNNhsrlfndVHB1yN5xssHrxX0AUVa8843ahGadopARrGtea009f2r0Mod"
229-
}
230-
},
231218
"AIChatBot": {
232-
"EncryptionPrivateKey": "a7Fq9LmB2XrT4pWz6VcN8KdY",
233219
"QdrantDB": {
234220
"Host": "localhost",
235221
"Port": 6334,

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

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
{
22
"DetailedErrors": true,
3-
"MongoDB": {
4-
"DatabaseName": "CodeBlock_Dev_Dev"
5-
},
6-
"Serilog": {
7-
"WriteTo": [
8-
{
9-
"Name": "Console",
10-
"Args": {
11-
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
12-
}
13-
}
14-
]
3+
"Application": {
4+
"Default": {
5+
"Url": "http://localhost:5038"
6+
}
157
},
16-
"Optimization": {
17-
"EnableCaching": false
8+
"MongoDB": {
9+
"Connection": "mongodb://localhost:27017"
1810
},
1911
"Swagger": {
2012
"Enabled": true

0 commit comments

Comments
 (0)