.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
DISABLE_AUTH
Set to any non-empty value to disable token authentication.
MAIL_SERVER
An email server to use when sending emails. For SendGrid, use "smtp.sendgrid.net". For Gmail use "smtp.googlemail.com".
MAIL_PORT
The port in which the email server listens for clients. For SendGrid or Gmail, use 587.
MAIL_USE_TLS
Set to any non-empty string to send emails via TLS. Required for both SendGrid and Gmail.
MAIL_USERNAME
The username for the email sender's account, if required by the server. For SendGrid, use "apikey". For Gmail, use your Google username.
MAIL_PASSWORD
secret
The password for the email sender's account, if required by the server. For SendGrid, use your API Key. For Gmail, use your Google password…
MAIL_DEFAULT_SENDER
The sender that appears in all emails sent by the application.
brew install flyctl && fly launch --from https://github.com/miguelgrinberg/microblog-api
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/miguelgrinberg/microblog-api
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/miguelgrinberg/microblog-api