diff --git a/idp/.env.skeleton b/idp/.env.skeleton index e5fb20d..fc54d64 100644 --- a/idp/.env.skeleton +++ b/idp/.env.skeleton @@ -10,4 +10,6 @@ MYSQL_ROOT_PASSWORD=kjsdahflöijsdiu IGNORE_PASSWORDS=FALSE # hier kann man sich nur mit dem Username einloggen, nicht zu empfehlen ausser zum debuggen JWT_SECRET=super-geheimes-secret JWT_EXPIRES_IN=10m -JWT_REFRESH_EXPIRES_IN=1w \ No newline at end of file +JWT_REFRESH_EXPIRES_IN=1w + +APPLICATIONPORT=5000 \ No newline at end of file diff --git a/idp/src/main.ts b/idp/src/main.ts index 1499b31..de7a6de 100644 --- a/idp/src/main.ts +++ b/idp/src/main.ts @@ -17,6 +17,6 @@ async function bootstrap() { transform: true, // Transform is recomended configuration for avoind issues with arrays of files transformations }), ); - await app.listen(3000); + await app.listen(parseInt(process.env.PORT) || 5001); } bootstrap();