2025-03-19 12:36:16 -04:00
|
|
|
# ================================ PLEASE READ ===========================================================
|
|
|
|
# This file outlines all the possible environment variables supported by the Maybe app for self hosting.
|
2024-10-24 11:02:27 -04:00
|
|
|
#
|
2025-03-19 12:36:16 -04:00
|
|
|
# If you're a developer setting up your local environment, please use `.env.local.example` instead.
|
|
|
|
# ========================================================================================================
|
|
|
|
|
|
|
|
# Required self-hosting vars
|
|
|
|
# --------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# Enables self hosting features (should be set to true unless you know what you're doing)
|
|
|
|
SELF_HOSTED=true
|
|
|
|
|
|
|
|
# Secret key used to encrypt credentials (https://api.rubyonrails.org/v7.1.3.2/classes/Rails/Application.html#method-i-secret_key_base)
|
|
|
|
# Has to be a random string, generated eg. by running `openssl rand -hex 64`
|
|
|
|
SECRET_KEY_BASE=secret-value
|
|
|
|
|
|
|
|
# Optional self-hosting vars
|
|
|
|
# --------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# Optional: Synth API Key for exchange rates + stock prices
|
|
|
|
# (you can also set this in your self-hosted settings page)
|
|
|
|
# Get it here: https://synthfinance.com/
|
|
|
|
SYNTH_API_KEY=
|
2024-10-24 11:02:27 -04:00
|
|
|
|
2024-05-08 19:54:40 +00:00
|
|
|
# Custom port config
|
|
|
|
# For users who have other applications listening at 3000, this allows them to set a value puma will listen to.
|
2024-10-10 01:21:15 +13:00
|
|
|
PORT=3000
|
2024-05-08 19:54:40 +00:00
|
|
|
|
2024-02-03 17:28:38 -06:00
|
|
|
# SMTP Configuration
|
|
|
|
# This is only needed if you intend on sending emails from your Maybe instance (such as for password resets or email financial reports).
|
|
|
|
# Resend.com is a good option that offers a free tier for sending emails.
|
|
|
|
SMTP_ADDRESS=
|
2024-02-03 17:59:34 -06:00
|
|
|
SMTP_PORT=465
|
2024-02-03 17:28:38 -06:00
|
|
|
SMTP_USERNAME=
|
|
|
|
SMTP_PASSWORD=
|
2024-04-29 22:44:24 +02:00
|
|
|
SMTP_TLS_ENABLED=true
|
|
|
|
|
2024-10-09 08:37:45 -05:00
|
|
|
# Address that emails are sent from
|
2024-04-29 22:44:24 +02:00
|
|
|
EMAIL_SENDER=
|
2024-02-07 04:32:19 +03:00
|
|
|
|
|
|
|
# Database Configuration
|
2024-02-26 03:46:45 -08:00
|
|
|
DB_HOST=localhost # May need to be changed to `DB_HOST=db` if using devcontainer
|
2024-02-26 06:44:07 -05:00
|
|
|
DB_PORT=5432
|
2024-02-07 04:32:19 +03:00
|
|
|
POSTGRES_PASSWORD=postgres
|
2024-02-26 03:46:45 -08:00
|
|
|
POSTGRES_USER=postgres
|
2024-03-20 13:27:40 -05:00
|
|
|
|
|
|
|
# App Domain
|
|
|
|
# This is the domain that your Maybe instance will be hosted at. It is used to generate links in emails and other places.
|
|
|
|
APP_DOMAIN=
|
|
|
|
|
2024-05-07 00:52:14 +02:00
|
|
|
# Disable enforcing SSL connections
|
|
|
|
# DISABLE_SSL=true
|
|
|
|
|
2025-06-18 04:31:10 -05:00
|
|
|
# Active Record Encryption Keys (Optional)
|
|
|
|
# These keys are used to encrypt sensitive data like API keys in the database.
|
|
|
|
# If not provided, they will be automatically generated based on your SECRET_KEY_BASE.
|
|
|
|
# You can generate your own keys by running: rails db:encryption:init
|
|
|
|
# ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=
|
|
|
|
# ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=
|
|
|
|
# ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=
|
|
|
|
|
2024-04-30 18:38:33 +01:00
|
|
|
# ======================================================================================================
|
|
|
|
# Active Storage Configuration - responsible for storing file uploads
|
|
|
|
# ======================================================================================================
|
|
|
|
#
|
2025-03-19 12:36:16 -04:00
|
|
|
# * Defaults to disk storage but you can also use Amazon S3 or Cloudflare R2
|
2024-04-30 18:38:33 +01:00
|
|
|
# * Set the appropriate environment variables to use these services.
|
|
|
|
# * Ensure libvips is installed on your system for image processing - https://github.com/libvips/libvips
|
|
|
|
#
|
|
|
|
# Amazon S3
|
|
|
|
# ==========
|
2025-03-19 12:36:16 -04:00
|
|
|
# ACTIVE_STORAGE_SERVICE=amazon <- Enables Amazon S3 storage
|
2024-04-30 18:38:33 +01:00
|
|
|
# S3_ACCESS_KEY_ID=
|
|
|
|
# S3_SECRET_ACCESS_KEY=
|
|
|
|
# S3_REGION= # defaults to `us-east-1` if not set
|
2024-05-08 19:54:40 +00:00
|
|
|
# S3_BUCKET=
|
2024-10-08 14:37:47 -05:00
|
|
|
#
|
2024-10-08 13:05:45 -05:00
|
|
|
# Cloudflare R2
|
|
|
|
# =============
|
2025-03-19 12:36:16 -04:00
|
|
|
# ACTIVE_STORAGE_SERVICE=cloudflare <- Enables Cloudflare R2 storage
|
2024-10-08 13:05:45 -05:00
|
|
|
# CLOUDFLARE_ACCOUNT_ID=
|
|
|
|
# CLOUDFLARE_ACCESS_KEY_ID=
|
|
|
|
# CLOUDFLARE_SECRET_ACCESS_KEY=
|
2024-10-08 14:37:47 -05:00
|
|
|
# CLOUDFLARE_BUCKET=
|
2024-11-15 13:49:37 -05:00
|
|
|
#
|