Another pass on the env vars

This commit is contained in:
Luke Murphy 2020-11-01 09:54:39 +01:00
parent 1028e90262
commit 3818e945c9
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 37 additions and 24 deletions

View File

@ -6,24 +6,25 @@ default: &defaults
multi_coop_install: false
# If multi_coop_install you have to use a coop name, which you you wanna be selected by default
default_scope: '{{ env "FOODCOOP_NAME" }}'
default_scope: "{{ env "FOODCOOP_NAME" }}"
# name of this foodcoop
name: '{{ env "FOODCOOP_NAME" }}'
name: "{{ env "FOODCOOP_NAME" }}"
# foodcoop contact information (used for FAX messages)
contact:
street: Grüne Straße 103
zip_code: "10101"
city: Greencity
country: Foodland
email: foodsoft@foodcoop.test
phone:
street: "{{ env "FOODCOOP_STREET" }}"
zip_code: "{{ env "FOODCOOP_ZIP_CODE" }}"
city: "{{ env "FOODCOOP_CITY" }}"
country: "{{ env "FOODCOOP_COUNTRY" }}"
email: "{{ env "FOODCOOP_EMAIL" }}"
phone: "{{ env "FOODCOOP_PHONE" }}"
# Homepage
homepage: https://foodcoops.github.io
homepage: "{{ env "FOODCOOP_HOMEPAGE" }}"
# foodsoft documentation URL
help_url: https://github.com/foodcoops/foodsoft/wiki/Doku
help_url: "{{ env "FOODCOOP_HELP_URL" }}"
# documentation URL for the apples&pears work system
applepear_url: https://github.com/foodcoops/foodsoft/wiki/%C3%84pfel-u.-Birnen
@ -32,15 +33,18 @@ default: &defaults
foodsoft_url: https://foodcoops.github.io
# Default language
#default_locale: en
default_locale: en
# By default, foodsoft takes the language from the webbrowser/operating system.
# In case you really want foodsoft in a certain language by default, set this to true.
# When members are logged in, the language from their profile settings is still used.
#ignore_browser_locale: false
ignore_browser_locale: false
# Default timezone, e.g. UTC, Amsterdam, Berlin, etc.
#time_zone: Berlin
time_zone: "{{ env "FOODCOOP_TIME_ZONE" }}"
# Currency symbol, and whether to add a whitespace after the unit.
#currency_unit:
currency_unit: €
#currency_space: true
# price markup in percent
@ -66,6 +70,7 @@ default: &defaults
# how many days there are between two periodic tasks
#tasks_period_days: 7
# how many days upfront periodic tasks are created
#tasks_upfront_days: 49
@ -86,24 +91,26 @@ default: &defaults
# Most plugins can be enabled/disabled here as well. Messages and wiki are enabled
# by default and need to be set to false to disable. Most other plugins needs to
# be enabled before they do anything.
#use_wiki: true
#use_messages: true
use_wiki: true
use_messages: true
# Base font size for generated PDF documents
#pdf_font_size: 12
# Page size for generated PDF documents
#pdf_page_size: A4
# Some documents (like group and article PDFs) can include page breaks
# after each sublist.
#pdf_add_page_breaks: true
# Alternatively, this can be set for each document.
#pdf_add_page_breaks:
# order_by_groups: true
# order_by_articles: true
# Page footer (html allowed). Default is a Foodsoft footer. Set to `blank` for no footer.
#page_footer: <a href="http://www.foodcoop.test/">FC Test</a> is supported by <a href="http://www.hoster.test/">Hoster</a>.
page_footer: "{{ env "FOODCOOP_FOOTER" }}"
# Custom CSS for the foodcoop
#custom_css: 'body { background-color: #fcffba; }'
@ -114,10 +121,10 @@ default: &defaults
# ......
# email address to be used as sender
email_sender: <%= ENV['EMAIL_SENDER'] %>
email_sender: "{{ env "FOODCOOP_EMAIL_SENDER" }}"
# domain to be used for reply emails
#reply_email_domain: reply.foodcoop.test
reply_email_domain: "{{ env "FOODCOOP_EMAIL_REPLY" }}"
# If your foodcoop uses a mailing list instead of internal messaging system
#mailing_list: list@example.org
@ -125,20 +132,26 @@ default: &defaults
# Config for the exception_notification plugin
notification:
error_recipients: <%= (ENV['ERROR_RECIPIENTS'] || '').split %>
sender_address: <%= "\\\"Foodsoft Error\\\" <#{ENV['EMAIL_SENDER']}>" %>
error_recipients:
- "{{ env "FOODCOOP_ERROR_MAIL" }}"
sender_address: "\"Foodsoft Error\" <{{ env "FOODCOP_EMAIL_SENDER" }}>"
email_prefix: "[Foodsoft]"
# http config for this host to generate links in emails (uses environment config when not set)
protocol: https
host: <%= ENV['HOSTNAME'] %>
host: "{{ env "FOODCOOP_HOST" }}"
#port: 3000
# Access to sharedlists, the external article-database.
# This allows a foodcoop to subscribe to a selection of a supplier's full assortment,
# and makes it possible to share data with several foodcoops. Using this requires installing
# an additional application with a separate database.
shared_lists: <%= ENV['SHAREDLISTS_DATABASE_URL'] %>
shared_lists:
adapter: "{{ env "FOODCOOP_SHARED_LISTS_DB_TYPE" }}"
host: "{{ env "FOODCOOP_SHARED_LISTS_HOST" }}"
database: "{{ env "FOODCOOP_SHARED_LISTS_DB_NAME" }}"
username: "{{ env "FOODCOOP_SHARED_LISTS_USERNAME" }}"
password: "{{ secret "shared_lists_db_password" }}"
# don't remove this, required to run the app
production: