diff --git a/README.md b/README.md index 0db3c74..73e0d1c 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Keys: | `listen` | HTTP listen address. Keep it on `127.0.0.1` behind the reverse proxy. | | `base_url` | Public URL used in links and mail. `https://` or `http://`, no trailing slash. | | `trusted_proxies` | Peers whose `X-Forwarded-For` is trusted for client IPs. IPs or CIDR networks. | -| `[oidc]` | `issuer` (the `im` origin, `https://`, no trailing slash), `client_id`, `client_secret_file`. Remove the section to run without sign-in. | +| `[oidc]` | `issuer` (the `im` origin, no trailing slash; `https://` outside a local test), `client_id`, `client_secret_file`. Remove the section to run without sign-in. | | `[in_store]` | `enabled`. Stores attachments in the `in` Files service instead of local disk. Off by default. | | `[backup]` | `dir` (backup sets go here), `interval_hours` (1 to 720, default 24), `keep` (1 to 365, default 14), `healthcheck_url` (optional, pinged after each good backup). Remove the section to turn scheduled backups off. | @@ -107,7 +107,7 @@ im client add --name iz --family-key iz \ --redirect-uri https://iz.example.com/auth/callback \ --post-logout-uri https://iz.example.com/ \ --backchannel-uri https://iz.example.com/auth/backchannel-logout \ - --scopes "openid profile email directory.read" + --scopes "openid profile email directory.read files.service" ``` Replace `https://iz.example.com` with your `base_url`. If the flags differ, run `im client add --help`. @@ -115,8 +115,8 @@ Replace `https://iz.example.com` with your `base_url`. If the flags differ, run - `im` prints `client_id` and `client_secret`. The secret is shown once. Save it into the file named by `client_secret_file`, mode `0600`, owned by `iz`. - `im` generates the `client_id` itself. Copy the printed value into `client_id` in `iz.toml`. -- The scopes must include `openid profile email` for sign-in and `directory.read` for the people - directory. +- The scopes must include `openid profile email` for sign-in, `directory.read` for the people + directory and `files.service` when attachments are stored in `in`. - The redirect, post-logout and back-channel URLs are the paths iz serves: `{base_url}/auth/callback`, `{base_url}/` and `{base_url}/auth/backchannel-logout`.