diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 281878f..702a719 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -9,7 +9,7 @@ docsurl: https://radio-aktywne.github.io/aster envprefix: ASTER imagename: apps/aster keyprefix: aster -port: 12000 +port: 10110 registry: true releases: true reponame: aster diff --git a/docker-compose.yaml b/docker-compose.yaml index 74e262d..bafdd51 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,13 +5,13 @@ services: network: host environment: - "ASTER__SERVER__HOST=${ASTER__SERVER__HOST:-0.0.0.0}" - - "ASTER__SERVER__PORT=${ASTER__SERVER__PORT:-12000}" + - "ASTER__SERVER__PORT=${ASTER__SERVER__PORT:-10110}" - "ASTER__DINGO__HTTP__SCHEME=${ASTER__DINGO__HTTP__SCHEME:-http}" - "ASTER__DINGO__HTTP__HOST=${ASTER__DINGO__HTTP__HOST:-localhost}" - - "ASTER__DINGO__HTTP__PORT=${ASTER__DINGO__HTTP__PORT:-9001}" + - "ASTER__DINGO__HTTP__PORT=${ASTER__DINGO__HTTP__PORT:-10101}" - "ASTER__DINGO__HTTP__PATH=${ASTER__DINGO__HTTP__PATH:-}" - "ASTER__PELICAN__HTTP__SCHEME=${ASTER__PELICAN__HTTP__SCHEME:-http}" - "ASTER__PELICAN__HTTP__HOST=${ASTER__PELICAN__HTTP__HOST:-localhost}" - - "ASTER__PELICAN__HTTP__PORT=${ASTER__PELICAN__HTTP__PORT:-42000}" + - "ASTER__PELICAN__HTTP__PORT=${ASTER__PELICAN__HTTP__PORT:-10200}" - "ASTER__PELICAN__HTTP__PATH=${ASTER__PELICAN__HTTP__PATH:-}" network_mode: host diff --git a/docs/docs/03-Configuration.md b/docs/docs/03-Configuration.md index 866774f..eab14e0 100644 --- a/docs/docs/03-Configuration.md +++ b/docs/docs/03-Configuration.md @@ -12,7 +12,7 @@ You can configure the app at runtime using various environment variables: (default: `0.0.0.0`) - `ASTER__SERVER__PORT` - port to run the server on - (default: `12000`) + (default: `10110`) - `ASTER__DINGO__HTTP__SCHEME` scheme of the HTTP API of the dingo service (default: `http`) @@ -21,7 +21,7 @@ You can configure the app at runtime using various environment variables: (default: `localhost`) - `ASTER__DINGO__HTTP__PORT` port of the HTTP API of the dingo service - (default: `9001`) + (default: `10101`) - `ASTER__DINGO__HTTP__PATH` path of the HTTP API of the dingo service (default: ``) @@ -33,7 +33,7 @@ You can configure the app at runtime using various environment variables: (default: `localhost`) - `ASTER__PELICAN__HTTP__PORT` port of the HTTP API of the pelican service - (default: `42000`) + (default: `10200`) - `ASTER__PELICAN__HTTP__PATH` path of the HTTP API of the pelican service (default: ``) diff --git a/package.json b/package.json index bc2d89a..c3accf4 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "aster", "private": true, "scripts": { - "dev": "next dev --hostname \"${ASTER__SERVER__HOST:-0.0.0.0}\" --port \"${ASTER__SERVER__PORT:-12000}\"", - "run": "next start --hostname \"${ASTER__SERVER__HOST:-0.0.0.0}\" --port \"${ASTER__SERVER__PORT:-12000}\"", + "dev": "next dev --hostname \"${ASTER__SERVER__HOST:-0.0.0.0}\" --port \"${ASTER__SERVER__PORT:-10110}\"", + "run": "next start --hostname \"${ASTER__SERVER__HOST:-0.0.0.0}\" --port \"${ASTER__SERVER__PORT:-10110}\"", "build": "next build", "clean": "rm --recursive --force build/", "update": "ncu --peer --upgrade && npm i --no-audit --no-fund", diff --git a/src/api/dingo/client.ts b/src/api/dingo/client.ts index 3ac14d4..570b4d4 100644 --- a/src/api/dingo/client.ts +++ b/src/api/dingo/client.ts @@ -7,7 +7,7 @@ const scheme = process.env.ASTER__DINGO__HTTP__SCHEME || "http"; const host = process.env.ASTER__DINGO__HTTP__HOST || "localhost"; const port = process.env.ASTER__DINGO__HTTP__PORT === undefined - ? 9001 + ? 10101 : process.env.ASTER__DINGO__HTTP__PORT; const path = (process.env.ASTER__DINGO__HTTP__PATH || "") // Ensure path starts with a slash diff --git a/src/api/pelican/client.ts b/src/api/pelican/client.ts index 92878c4..76ba558 100644 --- a/src/api/pelican/client.ts +++ b/src/api/pelican/client.ts @@ -7,7 +7,7 @@ const scheme = process.env.ASTER__PELICAN__HTTP__SCHEME || "http"; const host = process.env.ASTER__PELICAN__HTTP__HOST || "localhost"; const port = process.env.ASTER__PELICAN__HTTP__PORT === undefined - ? 42000 + ? 10200 : process.env.ASTER__PELICAN__HTTP__PORT; const path = (process.env.ASTER__PELICAN__HTTP__PATH || "") // Ensure path starts with a slash