From 8b78cc92c033b645e2ec75a25e37e46e8cd13cd8 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 15 Dec 2023 10:55:52 +0100 Subject: [PATCH] review suggestions --- README.md | 2 +- build/Dockerfile | 2 ++ src/app.controller.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 76f826b..33684d6 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,6 @@ To use this you need a running [CouchDB](https://docs.couchdb.org/en/stable/) an The following variables might need to be configured in the `.env` file: - `DATABASE_URL` URL of the `CouchDB` or [replication backend](https://github.com/Aam-Digital/replication-backend) - `QUERY_URL` URL of the SQS -- `SCHEMA_CONFIG_ID` database ID of the document which holds the SQS schema +- `SCHEMA_CONFIG_ID` database ID of the document which holds the SQS schema (default `_design/sqlite:config`) - `PORT` where the app should listen (default 3000) - `SENTRY_DSN` for remote logging diff --git a/build/Dockerfile b/build/Dockerfile index 9d693dc..de40b7a 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -34,6 +34,8 @@ COPY --from=builder /app/dist ./dist # (optional) The sentry DSN in order to send the error messages to sentry ENV SENTRY_DSN="" ENV PORT="" +ENV DATABASE_URL="" +ENV QUERY_URL="" CMD ["node", "dist/main"] diff --git a/src/app.controller.ts b/src/app.controller.ts index 8f4267e..1dc8839 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -14,7 +14,7 @@ import { catchError, concat, map, mergeMap, toArray } from 'rxjs'; import { SqlReport } from './sql-report'; import { QueryBody } from './query-body.dto'; -@Controller() +@Controller('report') export class AppController { private dbUrl = this.configService.get('DATABASE_URL'); private queryUrl = this.configService.get('QUERY_URL');