-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathapi-appsettings.yaml
112 lines (112 loc) · 3.39 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
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: "true"
objects:
- apiVersion: v1
data:
appsettings.json: |-
{
"AllowedHosts": "*",
"Constants": {
"Version": "1.0.4.0",
"SwaggerApiUrl": "/swagger/v1/swagger.json"
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
}
},
"WriteTo": [
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "Console",
"Args": {
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}"
}
}
]
}
},
{
"Name": "CrtPostgreSql",
"Args": {
"connectionString": "serilog",
"tableName": "crt",
"needAutoCreateTable": true
}
}
],
"Enrich": [
"FromLogContext",
"WithMachineName"
]
},
"ConnectionStrings": {
"CRT": "Server=(localdb)\\mssqllocaldb;Database=CRT_DEV;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"Hangfire": {
"EnableServer": false,
"WorkerCount": 1
},
"JWT": {
"Authority": "https://dev.loginproxy.gov.bc.ca/auth/realms/<realmid>",
"Audience": "<app-id>"
},
"ServiceAccount": {
"User": "<ServiceAccount:User>",
"Password": "<ServiceAccount:Password>",
"Server": "<Server>",
"Port": "<Port>"
},
"Router": {
"Url": "https://router.api.gov.bc.ca/directions.json",
"ApiKey": "ApiKey"
},
"Geocoder": {
"Url": "https://geocoder.api.gov.bc.ca/addresses.json",
"ApiKey": "ApiKey"
},
"GeoServerDEV": {
"Url": "https://devoas4.apps.th.gov.bc.ca",
"Path": "ogs-geoV06/ows?",
"Timeout": 60
},
"GeoServerTST": {
"Url": "https://tstoas5.apps.th.gov.bc.ca",
"Path": "ogs-geoV06/ows?",
"Timeout": 60
},
"GeoServerUAT": {
"Url": "https://tstoas5.apps.th.gov.bc.ca",
"Path": "ogs-geoV06/ows?",
"Timeout": 60
},
"GeoServerPRD": {
"Url": "https://prdoas5.apps.th.gov.bc.ca",
"Path": "ogs-geoV06/ows?",
"Timeout": 60
},
"DataBC": {
"Url": "https://openmaps.gov.bc.ca",
"Path": "geo/ows?",
"Timeout": 60
}
}
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"