You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `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. | |
151
154
| `WASTEBIN_CACHE_SIZE` | Number of rendered items to cache. Disable with 0. | `128` |
152
155
| `WASTEBIN_DATABASE_PATH` | Path to the sqlite3 database file. | `:memory:` |
153
156
| `WASTEBIN_HTTP_TIMEOUT` | Maximum number of seconds a request is processed until wastebin responds with 408. | `5` |
154
157
| `WASTEBIN_MAX_BODY_SIZE` | Number of bytes to accept for POST requests. | `1048576`, i.e. 1 MB |
155
158
| `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` |
157
160
| `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. |
158
161
| `WASTEBIN_THEME` | Theme colors, one of `ayu`, `base16ocean`, `coldark`, `gruvbox`, `monokai`, `onehalf`, `solarized`. | `ayu` |
159
162
| `WASTEBIN_TITLE` | HTML page title. | `wastebin` |
@@ -162,8 +165,7 @@ run-time behavior:
162
165
163
166
### API endpoints
164
167
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:
0 commit comments