Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec3d2b9e9f |
@@ -197,8 +197,9 @@ These terms are the names the code uses:
|
|||||||
`ETag`.
|
`ETag`.
|
||||||
- **Signed URL**: a `/v1/image/` URL whose `sig` signs its image request and its
|
- **Signed URL**: a `/v1/image/` URL whose `sig` signs its image request and its
|
||||||
expiry `exp` with `signing_key`.
|
expiry `exp` with `signing_key`.
|
||||||
- **Encrypted URL**: a `/v1/e/` URL whose token holds its image request and any
|
- **Encrypted URL**: a `/v1/e/` URL whose token encrypts its image request, and
|
||||||
expiry, encrypted with a key derived from `signing_key`.
|
its expiry unless the URL lasts forever, with a key derived from
|
||||||
|
`signing_key`.
|
||||||
- **Login session**: an encrypted cookie that keeps a browser logged in to the
|
- **Login session**: an encrypted cookie that keeps a browser logged in to the
|
||||||
generator page for 30 days, or until a logout replaces the random value pixa
|
generator page for 30 days, or until a logout replaces the random value pixa
|
||||||
keeps in the `logout` table (see Encrypted URLs).
|
keeps in the `logout` table (see Encrypted URLs).
|
||||||
@@ -929,8 +930,6 @@ See `configs/config.example.yml` for all options with defaults.
|
|||||||
the other parts that serve images and logins. Each setting's default is
|
the other parts that serve images and logins. Each setting's default is
|
||||||
declared once, in `internal/config`.
|
declared once, in `internal/config`.
|
||||||
- **Packages**: these packages under `internal/` work with the concepts above:
|
- **Packages**: these packages under `internal/` work with the concepts above:
|
||||||
- `handlers`: the routes, which read the image request from the URL, check
|
|
||||||
the signed or encrypted URL, and make the login session
|
|
||||||
- `imagerequest`: the image request, with the source key and the variant key
|
- `imagerequest`: the image request, with the source key and the variant key
|
||||||
- `imageproxy`: the image proxy
|
- `imageproxy`: the image proxy
|
||||||
- `imgcache`: the image cache, which keeps its sources in one `FileStore`
|
- `imgcache`: the image cache, which keeps its sources in one `FileStore`
|
||||||
|
|||||||
Reference in new issue
Block a user