mirror of
https://github.com/tiennm99/ghglance.git
synced 2026-10-11 03:13:20 +00:00
chore(compose): rename the server token variable to GHGLANCE_TOKEN
This commit is contained in:
1 parent
ee709597df
commit
9b3bcb451e
4 files changed
+5
-5
No files matched your search
+1
-1
@@ -1 +1 @@
|
|||||||
GHGLANCE_GITHUB_TOKEN=
|
GHGLANCE_TOKEN=
|
||||||
@@ -253,7 +253,7 @@ In Coolify:
|
|||||||
|
|
||||||
1. Create a resource from this Git repository with the **Docker Compose**
|
1. Create a resource from this Git repository with the **Docker Compose**
|
||||||
build pack and compose file `/compose.yml`.
|
build pack and compose file `/compose.yml`.
|
||||||
2. Set `GHGLANCE_GITHUB_TOKEN` (see [`.env.example`](./.env.example)) to a
|
2. Set `GHGLANCE_TOKEN` (see [`.env.example`](./.env.example)) to a
|
||||||
public-only token: a classic PAT with only `read:user`, never `repo`.
|
public-only token: a classic PAT with only `read:user`, never `repo`.
|
||||||
`compose.yml` requires it and passes it to the container as
|
`compose.yml` requires it and passes it to the container as
|
||||||
`GITHUB_TOKEN`. The distinct name keeps a `GITHUB_TOKEN` exported in your
|
`GITHUB_TOKEN`. The distinct name keeps a `GITHUB_TOKEN` exported in your
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_FQDN_GHGLANCE_8080
|
- SERVICE_FQDN_GHGLANCE_8080
|
||||||
- GITHUB_TOKEN=${GHGLANCE_GITHUB_TOKEN:?set a public-only GitHub token}
|
- GITHUB_TOKEN=${GHGLANCE_TOKEN:?set a public-only GitHub token}
|
||||||
volumes:
|
volumes:
|
||||||
- ghglance-data:/data
|
- ghglance-data:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
@@ -108,10 +108,10 @@ the `ghglance-data` volume, and health-checks `/healthz` with busybox
|
|||||||
|
|
||||||
| Variable | Needed for |
|
| Variable | Needed for |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `GHGLANCE_GITHUB_TOKEN` | Required by `compose.yml`, which passes it to the container as `GITHUB_TOKEN` for token-less submissions. Must be public-only: a classic PAT with just `read:user`. A token with `repo` scope or any private-repo access is refused for token-less jobs (GitHub would count private contributions in totals and calendars). |
|
| `GHGLANCE_TOKEN` | Required by `compose.yml`, which passes it to the container as `GITHUB_TOKEN` for token-less submissions. Must be public-only: a classic PAT with just `read:user`. A token with `repo` scope or any private-repo access is refused for token-less jobs (GitHub would count private contributions in totals and calendars). |
|
||||||
|
|
||||||
Coolify: create a Docker Compose resource from this repo, compose file
|
Coolify: create a Docker Compose resource from this repo, compose file
|
||||||
`/compose.yml`, set `GHGLANCE_GITHUB_TOKEN`, assign the domain, deploy. Server flags
|
`/compose.yml`, set `GHGLANCE_TOKEN`, assign the domain, deploy. Server flags
|
||||||
(`-cooldown`, `-retention`, `-workers`, `-timeout`) are changed by editing `command:` in
|
(`-cooldown`, `-retention`, `-workers`, `-timeout`) are changed by editing `command:` in
|
||||||
`compose.yml`. Steps for a plain Docker host and the request-handling rules
|
`compose.yml`. Steps for a plain Docker host and the request-handling rules
|
||||||
are in the README's "Run the web UI" section.
|
are in the README's "Run the web UI" section.
|
||||||
|
|||||||
Reference in new issue
Block a user