diff --git a/.env.sample b/.env.sample index 1a53680..9ef097e 100644 --- a/.env.sample +++ b/.env.sample @@ -17,6 +17,7 @@ FOODCOOP_HOMEPAGE=https://order.example.org FOODCOOP_HELP_URL=https://order.example.org FOODCOOP_TIME_ZONE=Amsterdam FOODCOOP_FOOTER='example hosted by Your Tech Co-op.' +USE_APPLE_POINTS=false # database settings MYSQL_DB=foodsoft diff --git a/app_config.yml.tmpl b/app_config.yml.tmpl index eb02e53..febd592 100644 --- a/app_config.yml.tmpl +++ b/app_config.yml.tmpl @@ -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 diff --git a/compose.yml b/compose.yml index b5fb696..3c0eaa9 100644 --- a/compose.yml +++ b/compose.yml @@ -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