forked from bcgov/HMCR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-appsettings.yaml
116 lines (116 loc) · 3.89 KB
/
api-appsettings.yaml
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
apiVersion: v1
kind: Template
metadata:
name: "true"
objects:
- apiVersion: v1
data:
appsettings.json: |-
{
"AllowedHosts": "*",
"Constants": {
"Version": "1.2.6.0",
"SwaggerApiUrl": "/swagger/v1/swagger.json"
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
}
},
"WriteTo": [
{
"Name": "Async",
"Args": {
"configure": [
{ "Name": "Console" }
]
}
},
{
"Name": "HmcrPostgreSql",
"Args": {
"connectionString": "serilog",
"tableName": "hmcr",
"needAutoCreateTable": true
}
}
],
"Enrich": [
"FromLogContext",
"WithMachineName"
]
},
"ConnectionStrings": {
"HMCR": "Server=(localdb)\\mssqllocaldb;Database=HMR_DEV;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"Hangfire": {
"EnableServer": true,
"ReportJobIntervalInMinutes": 1,
"EmailJobIntervalInMinutes": 30,
"WorkerCount": 1
},
"CHRIS": {
"MapUrl": "https://prd-maps.th.gov.bc.ca",
"MapPath": "geoV05/wfs?",
"OASUrl": "https://prdoas2.apps.th.gov.bc.ca",
"OASPath": "ogs-geoV06/wfs?",
"ExportUrl": "${EXPORT_URL}",
"WFSExportPath": "ogs-geoV06/ows?service=WFS&version=2.0.0&request=GetFeature",
"KMLExportPath": "ogs-geoV06/wms/kml?mode=download&styles=HMR_GENERIC_FOR_KML"
},
"JWT": {
"Authority": "https://sso-dev.pathfinder.gov.bc.ca/auth/realms/<realmid>",
"Audience": "<app-id>"
},
"BCeID": {
"Url": "${BCEID_SERVICE}",
"OSID": "<BCeID:OSID>",
"CacheLifespan": 600
},
"ServiceAccount": {
"User": "<ServiceAccount:User>",
"Password": "<ServiceAccount:Password>",
"GUID": "<ServiceAccount:GUID>"
},
"Smtp": {
"SenderName": "HMR NDR Email TRAN:EX",
"SenderAddress": "[email protected]",
"Thumbprint": "<Smtp:Thumbprint>",
"Server": "apps.smtp.gov.bc.ca",
"Port": 25,
"SubmissionResult": "${SUBMISSION_URL}"
},
"DefaultThresholdSpLevel": {
"Wildlife": "Level 2",
"Rockfall": "Level 1"
}
}
kind: ConfigMap
metadata:
name: api-appsettings-${ENV}
labels:
shared: "true"
parameters:
- description: Deployment environment (dev, test, uat, prod)
displayName: ENV
name: ENV
required: true
value: "dev"
- description: Submission results URL
displayName: SUBMISSION_URL
name: SUBMISSION_URL
required: true
value: "https://dev-hmcr.th.gov.bc.ca/workreporting?serviceArea={0}&showResult={1}"
- description: BCeID webservice URL
displayName: BCEID_SERVICE
name: BCEID_SERVICE
required: true
value: "https://gws1.test.bceid.ca/webservices/client/v10/bceidservice.asmx"
- description: GeoServer Report Export URL
displayName: EXPORT_URL
name: EXPORT_URL
required: true
value: "https://devoas1.apps.th.gov.bc.ca"