[add] added maximum client and demo client protection

- default demo clients can no longer be modified/deleted when in demo mode
 - increased default demo reset to 60 minutes
This commit is contained in:
2021-02-25 12:52:23 -05:00
parent 472ae4c90f
commit 5868377210
7 changed files with 60 additions and 7 deletions

View File

@@ -10,6 +10,8 @@ services:
environment:
# set to run app in subdirectory
RAILS_RELATIVE_URL_ROOT: /rynDNS
# set maximum number of clients in db
#RAILS_MAX_CLIENTS: 250
# set custom api key prefix
#API_KEY_PREFIX: zW3If4s5
# set custom header name for api key
@@ -19,7 +21,7 @@ services:
# set app to run as demo
#RAILS_API_DEMO: 1
# set cycle to reset demo data
#RAILS_DEMO_RESET: 300
#RAILS_DEMO_RESET: 60m
restart: always
image: ryndns
container_name: ryndns