Skip to content

Commit fc624d3

Browse files
committed
TD-5930 Appsettings values in azure apply to all projects
1 parent 8c7a190 commit fc624d3

File tree

3 files changed

+140
-85
lines changed

3 files changed

+140
-85
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"Environment": "Development",
3+
"Settings": {
4+
"BuildNumber": "DevelopmentBuild",
5+
"UserApiUrl": "https://lh-userapi.dev.local/api/",
6+
"OpenApiUrl": "https://lh-openapi.dev.local/",
7+
"LearningHubApiUrl": "https://lh-api.dev.local/api/",
8+
"LearningHubApiBFFUrl": "https://lh-web.dev.local/bff/",
9+
"LearningHubWebUiUrl": "https://lh-web.dev.local/",
10+
"LearningHubAdminUrl": "https://lh-admin.dev.local/"
11+
},
12+
"SocialMediaSharingUrls": {
13+
"Facebook": "https://www.facebook.com/sharer.php?u=",
14+
"Twitter": "https://twitter.com/intent/tweet?url=",
15+
"LinkedIn": "https://www.linkedin.com/sharing/share-offsite/?url="
16+
},
17+
"FindwiseSettings": {
18+
"ResourceSearchPageSize": 10,
19+
"CatalogueSearchPageSize": 3,
20+
"AllCatalogueSearchPageSize": 10
21+
},
22+
23+
"APIs": {
24+
},
25+
"Serilog": {
26+
"Using": [
27+
"Serilog.Sinks.BrowserConsole"
28+
],
29+
"MinimumLevel": {
30+
"Default": "Information",
31+
"Override": {
32+
"Microsoft": "Warning",
33+
"System": "Warning"
34+
}
35+
},
36+
"WriteTo": [
37+
{
38+
"Name": "BrowserConsole",
39+
"Args": {
40+
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact"
41+
}
42+
}
43+
],
44+
"Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ],
45+
"Properties": {
46+
"Application": "LearningHub Nhs WebUI Blazor Client",
47+
"Environment": "Development"
48+
}
49+
},
50+
"Properties": {
51+
"Application": "LearningHub Nhs WebUI Blazor Client"
52+
},
53+
"AllowedHosts": "*"
54+
}

LearningHub.Nhs.WebUI.BlazorClient/wwwroot/appsettings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Environment": "",
2+
"Environment": "Production",
33
"Settings": {
44
"BuildNumber": "Production",
55
"https": null,
@@ -20,10 +20,8 @@
2020
"CatalogueSearchPageSize": 3,
2121
"AllCatalogueSearchPageSize": 10
2222
},
23-
2423
"APIs": {
2524
},
26-
2725
"Serilog": {
2826
"Using": [
2927
"Serilog.Sinks.BrowserConsole"

LearningHub.Nhs.WebUI/appsettings.json

Lines changed: 85 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
2-
"Environment": "",
3-
"ConnectionStrings": {
4-
"NLogDb": "",
5-
"LearningHubRedis": ""
6-
},
7-
"MultiPageFormService": {
8-
"Database": "redis"
9-
},
10-
"ApplicationInsights": {
11-
"InstrumentationKey": ""
12-
},
13-
"Logging": {
14-
"LogLevel": {
15-
"Default": "Error",
16-
"System": "Information",
17-
"Microsoft": "Information"
18-
}
19-
},
20-
"AllowedHosts": "*",
2+
"Environment": "",
3+
"ConnectionStrings": {
4+
"NLogDb": "",
5+
"LearningHubRedis": ""
6+
},
7+
"MultiPageFormService": {
8+
"Database": "redis"
9+
},
10+
"ApplicationInsights": {
11+
"InstrumentationKey": ""
12+
},
13+
"Logging": {
14+
"LogLevel": {
15+
"Default": "Error",
16+
"System": "Information",
17+
"Microsoft": "Information"
18+
}
19+
},
20+
"AllowedHosts": "*",
2121
"Settings": {
2222
"BuildNumber": "NotSet",
2323
"KnownProxies": "",
@@ -118,68 +118,71 @@
118118
"EnableTempDebugging": "false",
119119
"LimitScormToAdmin": "false"
120120

121-
},
122-
"LearningHubAuthServiceConfig": {
123-
"Authority": "",
124-
"ClientId": "",
125-
"ClientSecret": "",
126-
"ResponseType": "",
127-
"AuthSecret": "",
128-
"AuthTimeout": 20,
129-
"OpenAthens": {
130-
"ClientId": "LearningHubOAClient"
131-
}
132-
},
133-
"MoodleAPIConfig": {
134-
"BaseUrl": "",
135-
"MoodleWSRestFormat": "json",
136-
"WSToken": ""
137-
},
138-
"AssetDetails": {
139-
"FilePath1": "145b58b5-2f3c-4c56-850e-ea5bd6dd232b",
140-
"FileName1": "Learning Hub Resource structure for search.docx",
141-
"Video1_locatorUri": "https://learninghubdevcontent-euno.streaming.media.azure.net/41aae6ba-6945-41fc-8efa-b8820dea762f/NHSTESTANDTRACEINNOVA.ism/manifest",
142-
"Video2_locatorUri": "https://learninghubdevcontent-euno.streaming.media.azure.net/41aae6ba-6945-41fc-8efa-b8820dea762f/NHSTESTANDTRACEINNOVA.ism/manifest",
143-
"ShowHomeLink": "true",
144-
"AutoPlayMedia": "false"
145-
},
146-
"AppStartConfig": {
147-
"Minimum_IOCP_THREADS": 100,
148-
"Minimum_WORKER_THREADS": 100
149-
},
150-
"CookieBannerConsent": {
151-
"CookieBannerContent": "<p>We've put some small files called cookies on your device to make our site work.</p> <p>We'd also like to use analytics cookies. These send anonymous information about how our site is used to a service called Google Analytics & Hotjar Analytics. We use this information to improve our site.</p>",
152-
"ApplicationName": "Learning Hub",
153-
"CookieName": "NHSLearningHub-cookie-consent",
154-
"ExpiryDays": "365",
155-
"AnalyticsCookieNamesPrefix": [ "_ga", "_hj" ],
156-
"AnalyticsCookiesDomainName": ""
157-
},
158-
"CookiePolicy": {
159-
"ControllerName": "Policies",
160-
"ActionName": "Cookie-policy"
161-
},
162-
"LearningHubReportAPIConfig": {
163-
"BaseUrl": "",
164-
"ClientId": "",
165-
"ClientIdentityKey": ""
166-
},
167-
"FeatureManagement": {
168-
"ContributeAudioVideoResource": true,
169-
"DisplayAudioVideoResource": true,
170-
"EnableMoodle": false
171-
},
172-
"IpRateLimiting": {
173-
"EnableEndpointRateLimiting": true,
174-
"StackBlockedRequests": false,
175-
"RealIpHeader": "X-Real-IP",
176-
"HttpStatusCode": 429,
177-
"GeneralRules": [
178-
{
179-
"Endpoint": "post:/Account/ForgotPassword",
180-
"Period": "1m",
181-
"Limit": 5
182-
}
183-
]
121+
},
122+
"LearningHubAuthServiceConfig": {
123+
"Authority": "",
124+
"ClientId": "",
125+
"ClientSecret": "",
126+
"ResponseType": "",
127+
"AuthSecret": "",
128+
"AuthTimeout": 20,
129+
"OpenAthens": {
130+
"ClientId": "LearningHubOAClient"
184131
}
132+
},
133+
"MoodleAPIConfig": {
134+
"BaseUrl": "",
135+
"MoodleWSRestFormat": "json",
136+
"WSToken": ""
137+
},
138+
"AssetDetails": {
139+
"FilePath1": "145b58b5-2f3c-4c56-850e-ea5bd6dd232b",
140+
"FileName1": "Learning Hub Resource structure for search.docx",
141+
"Video1_locatorUri": "https://learninghubdevcontent-euno.streaming.media.azure.net/41aae6ba-6945-41fc-8efa-b8820dea762f/NHSTESTANDTRACEINNOVA.ism/manifest",
142+
"Video2_locatorUri": "https://learninghubdevcontent-euno.streaming.media.azure.net/41aae6ba-6945-41fc-8efa-b8820dea762f/NHSTESTANDTRACEINNOVA.ism/manifest",
143+
"ShowHomeLink": "true",
144+
"AutoPlayMedia": "false"
145+
},
146+
"AppStartConfig": {
147+
"Minimum_IOCP_THREADS": 100,
148+
"Minimum_WORKER_THREADS": 100
149+
},
150+
"CookieBannerConsent": {
151+
"CookieBannerContent": "<p>We've put some small files called cookies on your device to make our site work.</p> <p>We'd also like to use analytics cookies. These send anonymous information about how our site is used to a service called Google Analytics & Hotjar Analytics. We use this information to improve our site.</p>",
152+
"ApplicationName": "Learning Hub",
153+
"CookieName": "NHSLearningHub-cookie-consent",
154+
"ExpiryDays": "365",
155+
"AnalyticsCookieNamesPrefix": [ "_ga", "_hj" ],
156+
"AnalyticsCookiesDomainName": ""
157+
},
158+
"CookiePolicy": {
159+
"ControllerName": "Policies",
160+
"ActionName": "Cookie-policy"
161+
},
162+
"LearningHubReportAPIConfig": {
163+
"BaseUrl": "",
164+
"ClientId": "",
165+
"ClientIdentityKey": ""
166+
},
167+
"FeatureManagement": {
168+
"ContributeAudioVideoResource": true,
169+
"DisplayAudioVideoResource": true,
170+
"EnableMoodle": false
171+
},
172+
"IpRateLimiting": {
173+
"EnableEndpointRateLimiting": true,
174+
"StackBlockedRequests": false,
175+
"RealIpHeader": "X-Real-IP",
176+
"HttpStatusCode": 429,
177+
"GeneralRules": [
178+
{
179+
"Endpoint": "post:/Account/ForgotPassword",
180+
"Period": "1m",
181+
"Limit": 5
182+
}
183+
]
184+
},
185+
"Properties": {
186+
"Application": "LearningHub Nhs WebUI Blazor Host"
187+
}
185188
}

0 commit comments

Comments
 (0)