Skip to content

Commit 9930bea

Browse files
committed
Update HEAD README.md and refer to previous versions
1 parent 7213675 commit 9930bea

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ A minimal pastebin with a design shamelessly copied from
1010

1111
<p align="center"><strong><a href="https://bin.bloerg.net">DEMO</a></strong> (resets every day)</p>
1212

13+
You are reading the documentation for an **unreleased version**. You can refer
14+
to earlier versions here: [2.7.1](https://github.com/matze/wastebin/tree/85a519ef9079c4618f851cce575b5a84334a6f42)
15+
1316

1417
## Features
1518

@@ -147,13 +150,13 @@ run-time behavior:
147150
| Variable | Description | Default |
148151
| --------------------------------- | ------------------------------------------------------------- | --------------------- |
149152
| `WASTEBIN_ADDRESS_PORT` | Address and port to bind the server to. | `0.0.0.0:8088` |
150-
| `WASTEBIN_BASE_URL` | Base URL for the QR code display. | User agent's `Host` header field used as an approximation. |
153+
| `WASTEBIN_BASE_URL` | Base URL for the QR code display. | |
151154
| `WASTEBIN_CACHE_SIZE` | Number of rendered items to cache. Disable with 0. | `128` |
152155
| `WASTEBIN_DATABASE_PATH` | Path to the sqlite3 database file. | `:memory:` |
153156
| `WASTEBIN_HTTP_TIMEOUT` | Maximum number of seconds a request is processed until wastebin responds with 408. | `5` |
154157
| `WASTEBIN_MAX_BODY_SIZE` | Number of bytes to accept for POST requests. | `1048576`, i.e. 1 MB |
155158
| `WASTEBIN_PASSWORD_SALT` | Salt used to hash user passwords used for encrypting pastes. | `somesalt` |
156-
| `WASTEBIN_PASTE_EXPIRATIONS` | Possible paste expirations as a comma-separated list of seconds. Appending `=d` to one of the value makes it the default selection. | |
159+
| `WASTEBIN_PASTE_EXPIRATIONS` | Possible paste expirations as a comma-separated list of seconds. Appending `=d` to one of the value makes it the default selection. | `0,600,3600=d,86400,604800,2419200,29030400` |
157160
| `WASTEBIN_SIGNING_KEY` | Key to sign cookies. Must be at least 64 bytes long. | Random key generated at startup, i.e. cookies will become invalid after restarts and paste creators will not be able to delete their pastes. |
158161
| `WASTEBIN_THEME` | Theme colors, one of `ayu`, `base16ocean`, `coldark`, `gruvbox`, `monokai`, `onehalf`, `solarized`. | `ayu` |
159162
| `WASTEBIN_TITLE` | HTML page title. | `wastebin` |
@@ -162,8 +165,7 @@ run-time behavior:
162165

163166
### API endpoints
164167

165-
POST a new paste to the `/` (up to 2.7.1) or `/api` (current HEAD) endpoint with
166-
the following JSON payload:
168+
POST a new paste to the `/api` endpoint with the following JSON payload:
167169

168170
```
169171
{

0 commit comments

Comments
 (0)