|
@ -35,6 +35,7 @@ async function bootstrap() { |
|
|
// Support 10mb csv/json files for importing activities
|
|
|
// Support 10mb csv/json files for importing activities
|
|
|
app.use(bodyParser.json({ limit: '10mb' })); |
|
|
app.use(bodyParser.json({ limit: '10mb' })); |
|
|
|
|
|
|
|
|
|
|
|
if (configService.get<string>('ENABLE_FEATURE_SUBSCRIPTION') === 'true') { |
|
|
app.use( |
|
|
app.use( |
|
|
helmet({ |
|
|
helmet({ |
|
|
contentSecurityPolicy: { |
|
|
contentSecurityPolicy: { |
|
@ -47,6 +48,7 @@ async function bootstrap() { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
); |
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const BASE_CURRENCY = configService.get<string>('BASE_CURRENCY'); |
|
|
const BASE_CURRENCY = configService.get<string>('BASE_CURRENCY'); |
|
|
const HOST = configService.get<string>('HOST') || '0.0.0.0'; |
|
|
const HOST = configService.get<string>('HOST') || '0.0.0.0'; |
|
|