Skip to content

Commit

Permalink
Fix const issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Borkan committed Mar 16, 2018
1 parent f638b02 commit 7da420f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/shadowbox/server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ const DEFAULT_STATE_DIR = '/root/shadowbox/persisted-state';
function main() {
const verbose = process.env.LOG_LEVEL === 'debug';
const publicAddress = process.env.SB_PUBLIC_IP;
const metricsUrl = process.env.SB_METRICS_URL;
if (!metricsUrl) {
// Default to production metrics, as some old Docker images may not have
// SB_METRICS_URL properly set.
// Default to production metrics, as some old Docker images may not have
// SB_METRICS_URL properly set.
const metricsUrl = process.env.SB_METRICS_URL || 'https://metrics-prod.uproxy.org';
if (!process.env.SB_METRICS_URL) {
console.warn('process.env.SB_METRICS_URL not set, using default');
metricsUrl = 'https://metrics-prod.uproxy.org';
}

if (!publicAddress) {
Expand Down

0 comments on commit 7da420f

Please sign in to comment.