Skip to content

Commit

Permalink
Changed ports (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
spietras authored Oct 19, 2024
1 parent 4c30abc commit 8c4a39e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
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/magnolia
envprefix: MAGNOLIA
imagename: apps/magnolia
keyprefix: magnolia
port: 38000
port: 10720
registry: true
releases: true
reponame: magnolia
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:
- "MAGNOLIA__SERVER__HOST=${MAGNOLIA__SERVER__HOST:-0.0.0.0}"
- "MAGNOLIA__SERVER__PORT=${MAGNOLIA__SERVER__PORT:-38000}"
- "MAGNOLIA__SERVER__PORT=${MAGNOLIA__SERVER__PORT:-10720}"
- "MAGNOLIA__BEAVER__HTTP__SCHEME=${MAGNOLIA__BEAVER__HTTP__SCHEME:-http}"
- "MAGNOLIA__BEAVER__HTTP__HOST=${MAGNOLIA__BEAVER__HTTP__HOST:-localhost}"
- "MAGNOLIA__BEAVER__HTTP__PORT=${MAGNOLIA__BEAVER__HTTP__PORT:-35000}"
- "MAGNOLIA__BEAVER__HTTP__PORT=${MAGNOLIA__BEAVER__HTTP__PORT:-10500}"
- "MAGNOLIA__BEAVER__HTTP__PATH=${MAGNOLIA__BEAVER__HTTP__PATH:-}"
- "MAGNOLIA__GECKO__HTTP__SCHEME=${MAGNOLIA__GECKO__HTTP__SCHEME:-http}"
- "MAGNOLIA__GECKO__HTTP__HOST=${MAGNOLIA__GECKO__HTTP__HOST:-localhost}"
- "MAGNOLIA__GECKO__HTTP__PORT=${MAGNOLIA__GECKO__HTTP__PORT:-31000}"
- "MAGNOLIA__GECKO__HTTP__PORT=${MAGNOLIA__GECKO__HTTP__PORT:-10700}"
- "MAGNOLIA__GECKO__HTTP__PATH=${MAGNOLIA__GECKO__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`)
- `MAGNOLIA__SERVER__PORT` -
port to run the server on
(default: `38000`)
(default: `10720`)
- `MAGNOLIA__BEAVER__HTTP__SCHEME`
scheme of the HTTP API of the beaver service
(default: `http`)
Expand All @@ -21,7 +21,7 @@ You can configure the app at runtime using various environment variables:
(default: `localhost`)
- `MAGNOLIA__BEAVER__HTTP__PORT`
port of the HTTP API of the beaver service
(default: `35000`)
(default: `10500`)
- `MAGNOLIA__BEAVER__HTTP__PATH`
path of the HTTP API of the beaver service
(default: ``)
Expand All @@ -33,7 +33,7 @@ You can configure the app at runtime using various environment variables:
(default: `localhost`)
- `MAGNOLIA__GECKO__HTTP__PORT`
port of the HTTP API of the gecko service
(default: `31000`)
(default: `10700`)
- `MAGNOLIA__GECKO__HTTP__PATH`
path of the HTTP API of the gecko 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": "magnolia",
"private": true,
"scripts": {
"dev": "next dev --hostname \"${MAGNOLIA__SERVER__HOST:-0.0.0.0}\" --port \"${MAGNOLIA__SERVER__PORT:-38000}\"",
"run": "next start --hostname \"${MAGNOLIA__SERVER__HOST:-0.0.0.0}\" --port \"${MAGNOLIA__SERVER__PORT:-38000}\"",
"dev": "next dev --hostname \"${MAGNOLIA__SERVER__HOST:-0.0.0.0}\" --port \"${MAGNOLIA__SERVER__PORT:-10720}\"",
"run": "next start --hostname \"${MAGNOLIA__SERVER__HOST:-0.0.0.0}\" --port \"${MAGNOLIA__SERVER__PORT:-10720}\"",
"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/beaver/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const scheme = process.env.MAGNOLIA__BEAVER__HTTP__SCHEME || "http";
const host = process.env.MAGNOLIA__BEAVER__HTTP__HOST || "localhost";
const port =
process.env.MAGNOLIA__BEAVER__HTTP__PORT === undefined
? 35000
? 10500
: process.env.MAGNOLIA__BEAVER__HTTP__PORT;
const path = (process.env.MAGNOLIA__BEAVER__HTTP__PATH || "")
// Ensure path starts with a slash
Expand Down
2 changes: 1 addition & 1 deletion src/api/gecko/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const scheme = process.env.MAGNOLIA__GECKO__HTTP__SCHEME || "http";
const host = process.env.MAGNOLIA__GECKO__HTTP__HOST || "localhost";
const port =
process.env.MAGNOLIA__GECKO__HTTP__PORT === undefined
? 31000
? 10700
: process.env.MAGNOLIA__GECKO__HTTP__PORT;
const path = (process.env.MAGNOLIA__GECKO__HTTP__PATH || "")
// Ensure path starts with a slash
Expand Down

0 comments on commit 8c4a39e

Please sign in to comment.