Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed ports #5

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions docs/docs/03-Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand All @@ -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: ``)
Expand All @@ -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: ``)
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/api/dingo/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/api/pelican/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down