Skip to content

Commit

Permalink
Merge pull request #528 from robotichead/documentation
Browse files Browse the repository at this point in the history
Adding in system variables documentation
  • Loading branch information
robotichead authored Oct 30, 2023
2 parents bbfb7ac + df35efb commit b27755a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/003-administration-tasks/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ There are a few things to do as administrator


.. toctree::
:maxdepth: 3
:maxdepth: 1
:caption: 🎣 Administration Tasks

First Time Setup </003-administration-tasks/first-time-setup>
System Variables </003-administration-tasks/system-variables>
49 changes: 49 additions & 0 deletions docs/003-administration-tasks/system-variables.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.. _system-variables:

================
System Variables
================

--------------------
MAX_FILE_SIZE_UPLOAD
--------------------

Max file size upload determines how large a file a user can upload. By default it is set at 100MB.

Examples of different values

+----------------------+-----------------+---------------+
| Human Readable Value | MAX_FILE_UPLOAD | Notes |
+======================+=================+===============+
| 100MB | 104857600 | Default Value |
+----------------------+-----------------+---------------+
| 10MB | 10485760 | |
+----------------------+-----------------+---------------+
| 1GB | 1048576000 | |
+----------------------+-----------------+---------------+

------------------
SESSION_COOKIE_AGE
------------------

Sesseion cookie age is a Django setting attribute - https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-SESSION_COOKIE_AGE
Use this setting to automatically log a user out after x amount of seconds

Example values

+----------------------+-----------------+-------------------+
| Human Readable Value | MAX_FILE_UPLOAD | Notes |
+======================+=================+===================+
| 2 weeks | 1209600 | Default Value |
+----------------------+-----------------+-------------------+
| 1 hour | 3600 | Recommended Value |
+----------------------+-----------------+-------------------+
| 30 min | 1800 | |
+----------------------+-----------------+-------------------+

--------------------------
SESSION_SAVE_EVERY_REQUEST
--------------------------

A django setting attribute - https://docs.djangoproject.com/en/4.2/ref/settings/#session-save-every-request
Used to determine if the cookies are refreshed every single time the user utilises NearBeach. We recommend True

0 comments on commit b27755a

Please sign in to comment.