[feat]Config read from environment variables

This commit is contained in:
Jimmy 2021-04-13 11:03:37 +08:00
parent b7fbba162b
commit 4fcc610b24
6 changed files with 22 additions and 8 deletions

View file

@ -101,4 +101,9 @@ Osem::Application.configure do
# Set the secret_key_base from the env, if not set by any other means
config.secret_key_base ||= ENV["SECRET_KEY_BASE"]
# Set bcc email address
config.mailbot = {
bcc_address: ENV['OSEM_MESSAGE_BCC_ADDRESS']
}
end