From 2e6868f5cfddf0d0156ddecfa70226b1b88084bd Mon Sep 17 00:00:00 2001 From: pimdo <38102897+pimdo@users.noreply.github.com> Date: Sun, 10 Mar 2024 18:01:56 +0000 Subject: [PATCH 1/2] Add demo1/demo2 to README with description --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3da5c6ac73..d52393659e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,8 @@ ![](https://github.com/LibrePhotos/librephotos/blob/dev/screenshots/mockups_main_fhd.png?raw=true) Mockup designed by rawpixel.com / Freepik -- The [demo is available here](https://demo2.librephotos.com/). User is ```demo```, password is ```demo1234```. +- **Stable** demo is available here:https://demo1.librephotos.com/ . User is ```demo```, password is ```demo1234``` (with sample images). +- Latest **development** demo is available here: https://demo2.librephotos.com/ (same user/password) - You can watch development videos on [Niaz Faridani-Rad's channel](https://www.youtube.com/channel/UCZJ2pk2BPKxwbuCV9LWDR0w) - You can join our [Discord][discord]. From aa1ade5d234d9ba1f335dbfbabb8350df8b01bc9 Mon Sep 17 00:00:00 2001 From: pimdo <38102897+pimdo@users.noreply.github.com> Date: Sat, 8 Jun 2024 21:33:51 +0100 Subject: [PATCH 2/2] Configurable REFRESH_TOKEN days --- librephotos/settings/production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librephotos/settings/production.py b/librephotos/settings/production.py index 42b4ab3512..30f7ed9d97 100644 --- a/librephotos/settings/production.py +++ b/librephotos/settings/production.py @@ -49,7 +49,7 @@ SIMPLE_JWT = { "ACCESS_TOKEN_LIFETIME": datetime.timedelta(minutes=5), - "REFRESH_TOKEN_LIFETIME": datetime.timedelta(days=7), + "REFRESH_TOKEN_LIFETIME": datetime.timedelta(days=int(os.environ.get("REFRESH_TOKEN_DAYS", "7"))), } INSTALLED_APPS = [