From 596dee2f2401669231ecd60714563ac62df59940 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sat, 15 May 2021 08:07:30 +0000 Subject: [PATCH] update docs --- docs/docs/functions/settings_override.md | 19 +++++++++++++++++++ docs/mkdocs.yml | 1 + 2 files changed, 20 insertions(+) create mode 100644 docs/docs/functions/settings_override.md diff --git a/docs/docs/functions/settings_override.md b/docs/docs/functions/settings_override.md new file mode 100644 index 00000000..8f4037df --- /dev/null +++ b/docs/docs/functions/settings_override.md @@ -0,0 +1,19 @@ +# Settings Override + +### Browser token expiration + +The default browser token expiration is set to 5 hours. See this [ticket](https://github.com/wh1te909/tacticalrmm/issues/503) for reference. + +To change it, add the following code block to the end of `/rmm/api/tacticalrmm/tacticalrmm/local_settings.py` + +```python +from datetime import timedelta + +REST_KNOX = { + "TOKEN_TTL": timedelta(days=30), + "AUTO_REFRESH": True, + "MIN_REFRESH_INTERVAL": 600, +} +``` + +Change `(days=30)` to whatever you prefer. Then run `sudo systemctl restart rmm` for changes to take effect. diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 7d039abe..a376b9ef 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -22,6 +22,7 @@ nav: - "Alerting": functions/alerting.md - "User Interface Preferences": functions/user_ui.md - "Django Admin": functions/django_admin.md + - "Settings Override": functions/settings_override.md - Backup: backup.md - Restore: restore.md - Troubleshooting: troubleshooting.md