diff --git a/README.md b/README.md index a7ae462..2bc10ce 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/docs/src/content/docs/guides/installation.md b/docs/src/content/docs/guides/installation.md index 2fcbc36..36b7022 100644 --- a/docs/src/content/docs/guides/installation.md +++ b/docs/src/content/docs/guides/installation.md @@ -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 ``` diff --git a/docs/src/content/docs/reference/configuration.md b/docs/src/content/docs/reference/configuration.md index 507f483..196c006 100644 --- a/docs/src/content/docs/reference/configuration.md +++ b/docs/src/content/docs/reference/configuration.md @@ -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.