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]. diff --git a/librephotos/settings/production.py b/librephotos/settings/production.py index db75f43272..c536b78216 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 = [