mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 09:49:32 +02:00
Add option to always unlock the premium version
This commit is contained in:
parent
f8b4fc77a5
commit
a73af1338e
8 changed files with 24 additions and 11 deletions
|
@ -20,12 +20,13 @@ On a invalid request body: HTTP status code 400 Bad Request
|
|||
|
||||
If the mail auth token is invalid/ expired: HTTP status code 401 Unauthorized
|
||||
|
||||
On success: a object with the properties ``status`` (string), ``mail`` (string) and
|
||||
``canCreateFamily`` (boolean)
|
||||
On success: a object with the properties ``status`` (string), ``mail`` (string),
|
||||
``canCreateFamily`` (boolean) and ``alwaysPro`` (boolean)
|
||||
|
||||
- ``status`` is ``with family`` or ``without family``
|
||||
- ``mail`` is the mail address for which the auth token was created
|
||||
- ``canCreateFamily`` is false if the sign up of new families was disabled and otherwise true
|
||||
- ``alwaysPro`` is true if the premium version is always unlocked
|
||||
|
||||
## POST /parent/create-family
|
||||
|
||||
|
|
|
@ -48,7 +48,9 @@
|
|||
- DISABLE_SIGNUP
|
||||
- ``yes`` or ``no`` (default: no)
|
||||
- disables creating new families if ``yes`` is selected
|
||||
- the default value is ``no``
|
||||
- ALWAYS_PRO
|
||||
- ``yes`` or ``no`` (default: ``no``)
|
||||
- if ``yes``, then the features of the premium version are unlocked for all users
|
||||
- PING_INTERVAL_SEC
|
||||
- ping interval at the websocket in seconds
|
||||
- the default value is ``25``
|
||||
|
|
|
@ -23,6 +23,7 @@ services:
|
|||
PORT: 8080
|
||||
MAIL_SENDER: me@my.timelimit.server
|
||||
MAIL_TRANSPORT: '{"host": "localhost", "port": 25}'
|
||||
ALWAYS_PRO: yes
|
||||
# put additional config variables here
|
||||
ports:
|
||||
- "8080:8080"
|
||||
|
@ -68,6 +69,7 @@ services:
|
|||
PORT: 8080
|
||||
MAIL_SENDER: me@my.timelimit.server
|
||||
MAIL_TRANSPORT: '{"host": "localhost", "port": 25}'
|
||||
ALWAYS_PRO: yes
|
||||
# put additional config variables here
|
||||
restart: always
|
||||
# you can enable logging during testing by commenting this out,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue