Skip to content

Commit 8ababb1

Browse files
rewrittenclaude
andauthored
docs: document missing ENV variables for mailing and assets (#833)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 966b68e commit 8ababb1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ MAIL_LINK_HOST=localhost:3000
2222
MAIL_LINK_PROTO=http
2323

2424
# Email provider
25+
MAILER_SENDER=noreply@timeoverflow.org
2526
SMTP_PASSWORD=XXXXXXXX
2627
SMTP_DOMAIN=www.timeoverflow.org
2728
SMTP_USER_NAME=my_username@timeoverflow.org

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ In order to configure the application you can use the following ENV variables:
7272
| `SECRET_KEY_BASE` | Secret key for the application, generate a new one with the command `rails secret` | |
7373
| `DATABASE_URL` | Database URL, the format is `postgresql://user:password@host:port/database` | |
7474
| `RAILS_SERVE_STATIC_FILES` | Tell the application to serve static files (you might want to turn this off if you are using an external web server to serve files from the `public` folder) | `true` |
75+
| `RAILS_ASSET_HOST` | CDN or external host to serve assets from (ie: `cdn.mydomain.tld`) | |
76+
| `ASSETS_PRECOMPILE` | Set to `true` to enable asset precompilation with compression during startup | |
7577
| `RAILS_LOG_TO_STDOUT` | Tell the application to log to STDOUT (useful for Docker) | `true` |
7678
| `RAILS_LOG_LEVEL` | Log level for the application (use `debug` for maximum information) | `info` |
7779
| `RAILS_MAX_THREADS` | Maximum number of threads to use in the application (use `1` if multithreading is not desired) | `5` |
@@ -83,7 +85,8 @@ In order to configure the application you can use the following ENV variables:
8385
| `STORAGE_PROVIDER` | Storage provider for the application (currently the application supports `local` and `amazon`) | `amazon` |
8486
| `FORCE_SSL` | Force SSL connections | `false` |
8587
| `MAIL_LINK_HOST` | Host to use in the links sent by email (use your domain without protocol `mydomain.tld`) | |
86-
| `MAIL_LINK_PROTOCOL` | Protocol to use in the previous host defined for links sent by email | `https` |
88+
| `MAIL_LINK_PROTO` | Protocol to use in the previous host defined for links sent by email | `https` |
89+
| `MAILER_SENDER` | Email address used as the sender for Devise emails (ie: `noreply@mydomain.tld`) | `please-change-me-at-config-initializers-devise@example.com` |
8790
| `SMTP_ADDRESS` | SMTP server address (ie: `smtp.mailgun.org`) | |
8891
| `SMTP_PORT` | SMTP server port (ie: `587`) | |
8992
| `SMTP_DOMAIN` | SMTP domain (usually the application's domain) | |

0 commit comments

Comments
 (0)