Add DASHBOARD_PAGE_SIZE to TEMPLATE.env and app.json

This commit is contained in:
Paweł Jastrzębski 2021-04-30 13:59:43 +02:00
parent 9fb875f749
commit d9e1ffddb1
3 changed files with 11 additions and 1 deletions

View File

@ -83,3 +83,7 @@ BLOCK_ALL_IPS=False
# keys) aren't supplied. It will also prevent sessions from spanning
# one day to another.
AGGRESSIVE_HASH_SALTING=True
# How many services should be displayed on dashboard page?
# Set to big number if you don't want pagination at all.
DASHBOARD_PAGE_SIZE=5

View File

@ -122,6 +122,11 @@
"description": "Set to 'False' if you do not want the version to be displayed on the frontend.",
"value": "True",
"required": false
},
"DASHBOARD_PAGE_SIZE": {
"description": "How many services should be displayed on dashboard page?",
"value": "5",
"required": false
}
}
}

View File

@ -340,4 +340,5 @@ BLOCK_ALL_IPS = os.getenv("BLOCK_ALL_IPS", "False") == "True"
# Include date and service ID in salt?
AGGRESSIVE_HASH_SALTING = os.getenv("AGGRESSIVE_HASH_SALTING", "False") == "True"
# How many services should be displayed on dashboard page?
DASHBOARD_PAGE_SIZE = os.getenv("DASHBOARD_PAGE_SIZE", 5)