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
### Set `PERSISTENT_TOKENS_KEY` for manual installs (required)
134
+
135
+
FileRise reads the persistent tokens encryption key from the `PERSISTENT_TOKENS_KEY` environment variable. On manual installs, you must set this yourself so "remember me" tokens are not encrypted with the default fallback key.
Caddy typically passes requests to PHP-FPM, so set the variable in PHP-FPM using one of the methods above.
212
+
213
+
### Important note about changing the key later
214
+
215
+
Set your `PERSISTENT_TOKENS_KEY` **before users start using remember-me tokens** and keep it stable.
216
+
217
+
If you change this key later, previously issued persistent login tokens can no longer be decrypted, so users with remembered sessions will need to log in again.
218
+
133
219
### Proxy / subpath notes
134
220
135
221
- Set `FR_PUBLISHED_URL` to the public URL (e.g. `https://example.com/files`).
@@ -142,15 +228,15 @@ Uploaded file data and app metadata must go through the API. Do **not** expose `
0 commit comments