docs: include port in allowed hosts config

This commit is contained in:
Gabe Farrell 2025-06-14 11:14:49 -04:00
parent 42cda0b1d6
commit 1440bce3a1
3 changed files with 5 additions and 5 deletions

View file

@ -39,7 +39,7 @@ services:
- db - db
environment: environment:
- KOITO_DATABASE_URL=postgres://postgres:secret_password@db:5432/koitodb - KOITO_DATABASE_URL=postgres://postgres:secret_password@db:5432/koitodb
- KOITO_ALLOWED_HOSTS=koito.example.com,192.168.0.100 - KOITO_ALLOWED_HOSTS=koito.example.com,192.168.0.100:4110
ports: ports:
- "4110:4110" - "4110:4110"
volumes: volumes:

View file

@ -14,7 +14,7 @@ services:
- db - db
environment: environment:
- KOITO_DATABASE_URL=postgres://postgres:secret_password@db:5432/koitodb - KOITO_DATABASE_URL=postgres://postgres:secret_password@db:5432/koitodb
- KOITO_ALLOWED_HOSTS=koito.example.com,192.168.0.100 - KOITO_ALLOWED_HOSTS=koito.example.com,192.168.0.100:4110
ports: ports:
- "4110:4110" - "4110:4110"
volumes: volumes:
@ -34,7 +34,7 @@ services:
``` ```
Be sure to replace `secret_password` with a random password of your choice, and set `KOITO_ALLOWED_HOSTS` to include the domain name or IP address you will be accessing Koito Be sure to replace `secret_password` with a random password of your choice, and set `KOITO_ALLOWED_HOSTS` to include the domain name or IP address + port you will be accessing Koito
from when using either of the Docker methods described above. from when using either of the Docker methods described above.
Those are the two required environment variables. You can find a full list of configuration options in the [configuration reference](/reference/configuration). Those are the two required environment variables. You can find a full list of configuration options in the [configuration reference](/reference/configuration).
@ -68,7 +68,7 @@ When the build is finished, you can run the executable at the root of the direct
```sh ```sh
KOITO_DATABASE_URL=postgres://postgres:secret_password@postgres_ip:5432/koitodb \ KOITO_DATABASE_URL=postgres://postgres:secret_password@postgres_ip:5432/koitodb \
KOITO_ALLOWED_HOSTS=koito.example.com,192.168.0.100 \ KOITO_ALLOWED_HOSTS=koito.example.com,192.168.0.100:4110 \
./koito ./koito
``` ```

View file

@ -10,7 +10,7 @@ Koito is configured using **environment variables**. This is the full list of co
- Description: A Postgres connection URI. See https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS for more information. - Description: A Postgres connection URI. See https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS for more information.
##### KOITO_ALLOWED_HOSTS ##### KOITO_ALLOWED_HOSTS
- Required: `true` - Required: `true`
- Description: A list of hosts to allow requests from. E.g. `koito.mydomain.com,192.168.0.100`. - Description: A list of hosts to allow requests from. E.g. `koito.mydomain.com,192.168.0.100:4110`.
##### KOITO_DEFAULT_USERNAME ##### KOITO_DEFAULT_USERNAME
- Default: `admin` - Default: `admin`
- Description: The username for the user that is created on first startup. Only applies when running Koito for the first time. - Description: The username for the user that is created on first startup. Only applies when running Koito for the first time.