diff --git a/.env.example b/.env.example index f34051ee3..1cbe2b1c3 100644 --- a/.env.example +++ b/.env.example @@ -12,6 +12,7 @@ DB_ENTITIES=dist/src/modules/**/entities/**/*.entity{.ts,.js} DB_MIGRATIONS=dist/**/migrations/*{.ts,.js} DB_TYPE=postgres +DB_SSL=true JWT_SECRET=someSecrets JWT_EXPIRY_TIMEFRAME=3600 diff --git a/src/main.ts b/src/main.ts index a8afa28f4..2fda7e5fd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -30,7 +30,7 @@ async function bootstrap() { app.enable('trust proxy'); app.useLogger(logger); app.enableCors(); - app.setGlobalPrefix('api/v1', { exclude: ['/', 'health', 'api', 'api/v1'] }); + app.setGlobalPrefix('api/v1', { exclude: ['/', 'health', 'api', 'api/v1', 'api/docs'] }); // TODO: set options for swagger docs const options = new DocumentBuilder()