feat: config apple points

See https://github.com/foodcoops/foodsoft/issues/867.
This commit is contained in:
decentral1se 2021-12-23 19:18:22 +01:00
parent 25d5ae520b
commit 7ab041cc7e
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
3 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,7 @@ FOODCOOP_HOMEPAGE=https://order.example.org
FOODCOOP_HELP_URL=https://order.example.org
FOODCOOP_TIME_ZONE=Amsterdam
FOODCOOP_FOOTER='<a href="https://example.org/">example</a> hosted by <a href="https://yourhoster.org">Your Tech Co-op</a>.'
USE_APPLE_POINTS=false
# database settings
MYSQL_DB=foodsoft

View File

@ -62,7 +62,7 @@ default: &defaults
#stop_ordering_under: 75
# Comment out to completely hide apple points (be sure to comment stop_ordering_under)
#use_apple_points: false
use_apple_points: {{ env "USE_APPLE_POINTS" }}
# ordergroups can only order when their balance is higher than or equal to this
# not fully enforced right now, since the check is only client-side

View File

@ -33,6 +33,7 @@ x-env: &env
SMTP_PASSWORD_FILE: /run/secrets/smtp_password
SMTP_PORT:
SMTP_USER_NAME:
USE_APPLE_POINTS:
x-configs: &configs
- source: app_config