mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
fix probe api
This commit is contained in:
parent
85a5e028d8
commit
94a057ab8a
@ -27,7 +27,7 @@ Expand the name of the chart.
|
||||
{{ printf "http://%s-backend.%s.%s" $.Release.Name $.Release.Namespace "svc.cluster.local" }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "oneuptime.fetchResourcesUrl" -}}
|
||||
{{- define "oneuptime.probeApiUrl" -}}
|
||||
{{ printf "http://%s-probe-api.%s.%s" $.Release.Name $.Release.Namespace "svc.cluster.local" }}
|
||||
{{- end -}}
|
||||
|
||||
|
@ -77,6 +77,8 @@ spec:
|
||||
value: {{ $.Values.nodeEnv }}
|
||||
- name: IS_TESTING
|
||||
value: {{ $.Values.isTesting | quote }}
|
||||
- name: DB_NAME
|
||||
value: {{ $.Values.mongo.databaseName }}
|
||||
ports:
|
||||
- containerPort: {{ $.Values.host.fetchResourcesPort }}
|
||||
hostPort: {{ $.Values.host.fetchResourcesPort }}
|
@ -60,6 +60,8 @@ spec:
|
||||
value: {{ $value.name }}
|
||||
- name: PROBE_KEY
|
||||
value: {{ $value.key }}
|
||||
- name: PROBE_API_URL
|
||||
value: {{ template "oneuptime.probeApiUrl" $ }}
|
||||
{{- if $.Values.newRelic.probe.licenseKey }}
|
||||
- name: NEW_RELIC_LICENSE_KEY
|
||||
value: {{ $.Values.newRelic.probe.licenseKey }}
|
||||
|
@ -4,3 +4,4 @@ SLACK_ERROR_LOG_WEBHOOK=https://hooks.slack.com/services/T033XTX49/B01NA8QGYF3/6
|
||||
SLACK_ERROR_LOG_CHANNEL=oneuptime-engineering
|
||||
PORT=3400
|
||||
REALTIME_URL=http://localhost:3300
|
||||
DB_NAME=oneuptimedb
|
@ -69,7 +69,7 @@ const client = getMongoClient();
|
||||
})();
|
||||
|
||||
// attach the database to global object
|
||||
global.db = client.db('oneuptimedb');
|
||||
global.db = client.db(process.env.DB_NAME);
|
||||
|
||||
// Sentry: The request handler must be the first middleware on the app
|
||||
app.use(Sentry.Handlers.requestHandler());
|
||||
|
@ -3,6 +3,6 @@ const packageJson = require('../package.json');
|
||||
module.exports = {
|
||||
clusterKey: process.env.CLUSTER_KEY,
|
||||
fetchResourcesVersion: packageJson.version,
|
||||
mongoUrl: process.env.MONGO_URL || 'mongodb://localhost:27017/oneuptimedb',
|
||||
mongoUrl: process.env.MONGO_URL,
|
||||
realtimeUrl: process.env['REALTIME_URL'],
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user