diff --git a/backend/src/main.ts b/backend/src/main.ts index a9c2c77..89dee5d 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -74,7 +74,9 @@ async function bootstrap() { SwaggerModule.setup("api/swagger", app, document); } - await app.listen(parseInt(process.env.PORT) || 8080); + await app.listen( + parseInt(process.env.BACKEND_PORT || process.env.PORT || "8080"), + ); const logger = new Logger("UnhandledAsyncError"); process.on("unhandledRejection", (e) => logger.error(e)); diff --git a/docs/docs/setup/configuration.md b/docs/docs/setup/configuration.md index 847cbb5..a8a3833 100644 --- a/docs/docs/setup/configuration.md +++ b/docs/docs/setup/configuration.md @@ -36,7 +36,7 @@ For installation specific configuration, you can use environment variables. The | Variable | Default Value | Description | | ---------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `PORT` | `8080` | The port on which the backend listens. | +| `BACKEND_PORT` | `8080` | The port on which the backend listens. | | `DATABASE_URL` | `file:../data/pingvin-share.db?connection_limit=1` | The URL of the SQLite database. | | `DATA_DIRECTORY` | `./data` | The directory where data is stored. | | `CLAMAV_HOST` | `127.0.0.1` or `clamav` when running with Docker | The IP address of the ClamAV server. See the [ClamAV docs](integrations.md#clamav) for more information. |