A small Go service to query and subscribe to BTC to USD rates
In order to make the mailer do the mails, the following configuration parameters have to be supplied, either in /conf/config.local.(toml|yml|json)
or as an environment variables. Be careful not to commit secrets.
EMAIL_SMTP_HOST
— a hostname for the smtp server, that will be used to send out emailsEMAIL_USERNAME
— username for authorization to the said smtp serverEMAIL_PASSWORD
— the task of figuring this out I'll leave as an excercise to the readerEMAIL_FROM
— from whom should be emails sent. Must be a valid RFC(something, something) email addressAPP_MODE
— can be set todev
orprod
(dev
by default). Changes which set of configs will be loaded. Either/conf/config.dev.(toml|yml|json)
or/conf/config.prod.(toml|yml|json)
.
go do the go run .
thing to your heart's content