docs: include port in allowed hosts config

pull/20/head
Gabe Farrell 6 months ago
parent 42cda0b1d6
commit 1440bce3a1

@ -39,7 +39,7 @@ services:
- db
environment:
- 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:
- "4110:4110"
volumes:

@ -14,7 +14,7 @@ services:
- db
environment:
- 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:
- "4110:4110"
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.
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
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
```

@ -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.
##### KOITO_ALLOWED_HOSTS
- 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
- Default: `admin`
- Description: The username for the user that is created on first startup. Only applies when running Koito for the first time.

Loading…
Cancel
Save