Skip to content

Commit d6b8b56

Browse files
committed
fix: use unique port env variable for backend
1 parent 511ae93 commit d6b8b56

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

backend/src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ async function bootstrap() {
7474
SwaggerModule.setup("api/swagger", app, document);
7575
}
7676

77-
await app.listen(parseInt(process.env.PORT) || 8080);
77+
await app.listen(
78+
parseInt(process.env.BACKEND_PORT || process.env.PORT || "8080"),
79+
);
7880

7981
const logger = new Logger("UnhandledAsyncError");
8082
process.on("unhandledRejection", (e) => logger.error(e));

docs/docs/setup/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For installation specific configuration, you can use environment variables. The
3636

3737
| Variable | Default Value | Description |
3838
| ---------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
39-
| `PORT` | `8080` | The port on which the backend listens. |
39+
| `BACKEND_PORT` | `8080` | The port on which the backend listens. |
4040
| `DATABASE_URL` | `file:../data/pingvin-share.db?connection_limit=1` | The URL of the SQLite database. |
4141
| `DATA_DIRECTORY` | `./data` | The directory where data is stored. |
4242
| `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. |

0 commit comments

Comments
 (0)