|
@@ -58,8 +58,6 @@ the key ones are:
|
|
|
|
|
|
|
|
| Variable | How to generate |
|
|
| Variable | How to generate |
|
|
|
|---------------------------|--------------------------------------------------------------------------------------------------|
|
|
|---------------------------|--------------------------------------------------------------------------------------------------|
|
|
|
-| `UI_SECRET` | `openssl rand -hex 32` — signs UI session cookies. |
|
|
|
|
|
-| `APP_SECRET` | `openssl rand -hex 32` — signs api-side ETags and similar. |
|
|
|
|
|
| `INTERNAL_JOB_TOKEN` | `openssl rand -hex 32` — Bearer for `/internal/jobs/*`. |
|
|
| `INTERNAL_JOB_TOKEN` | `openssl rand -hex 32` — Bearer for `/internal/jobs/*`. |
|
|
|
| `UI_SERVICE_TOKEN` | `irdb_svc_…` — bridge between UI and API (see `.env.example` for the one-liner). |
|
|
| `UI_SERVICE_TOKEN` | `irdb_svc_…` — bridge between UI and API (see `.env.example` for the one-liner). |
|
|
|
| `LOCAL_ADMIN_PASSWORD_HASH` | `php -r "echo password_hash('your-pw', PASSWORD_ARGON2ID);"` — **double every `$` to `$$`** in the .env file so docker-compose doesn't eat it. |
|
|
| `LOCAL_ADMIN_PASSWORD_HASH` | `php -r "echo password_hash('your-pw', PASSWORD_ARGON2ID);"` — **double every `$` to `$$`** in the .env file so docker-compose doesn't eat it. |
|
|
@@ -508,10 +506,9 @@ Three sections:
|
|
|
|
|
|
|
|
The api's effective config, grouped into sections (database, jobs,
|
|
The api's effective config, grouped into sections (database, jobs,
|
|
|
GeoIP, etc.). Secrets are masked: `***` for `INTERNAL_JOB_TOKEN`,
|
|
GeoIP, etc.). Secrets are masked: `***` for `INTERNAL_JOB_TOKEN`,
|
|
|
-`MAXMIND_LICENSE_KEY`, `IPINFO_TOKEN`, `DB_MYSQL_PASSWORD`,
|
|
|
|
|
-`APP_SECRET`. `UI_SERVICE_TOKEN` is shown as the first 8 characters
|
|
|
|
|
-+ `…`. Empty values are rendered as `(empty)` so misconfiguration is
|
|
|
|
|
-visible.
|
|
|
|
|
|
|
+`MAXMIND_LICENSE_KEY`, `IPINFO_TOKEN`, `DB_MYSQL_PASSWORD`.
|
|
|
|
|
+`UI_SERVICE_TOKEN` is shown as the first 8 characters + `…`. Empty
|
|
|
|
|
+values are rendered as `(empty)` so misconfiguration is visible.
|
|
|
|
|
|
|
|
#### Jobs
|
|
#### Jobs
|
|
|
|
|
|