mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
* Introduce ActiveStorage * Add active storage related service gems * Update storage.yml * Install image processing gem - sudo apt-get install libvips (required dependency) * Set default active storage service * Add profile image to user model * Amend form to allow profile images to be saved, introduce stimulus controller. * Purge image when form is blank * Update markup/stimulus controller * Add test for profile image uplaods * Add profile image validation * Use rails guide gem versions * Use correct ERB syntax and make all storage options configurable * Ensure form submits when user clears profile image * Add profile image thumbnail method * Extract profile image to a partial * Updates env.example and storage.yml * Fix bug with double form save * Add profile image to the sidenav * Update production config * Fix ERB formatting * normalize en.yml * Handle non-square images * Use pre-processing on thumbnail variant * Resovle gemfile.lock issues * Rubocop style changes --------- Signed-off-by: Christian <47796704+crobbo@users.noreply.github.com> Co-authored-by: Christian Robinson <christian@robbo.dev>
91 lines
No EOL
3.8 KiB
Text
91 lines
No EOL
3.8 KiB
Text
# Exchange Rate API
|
|
# This is used to convert between different currencies in the app. We use Synth, which is a Maybe product. You can sign up for a free account at synthfinance.com.
|
|
SYNTH_API_KEY=
|
|
|
|
# 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=
|
|
SMTP_PORT=465
|
|
SMTP_USERNAME=
|
|
SMTP_PASSWORD=
|
|
SMTP_TLS_ENABLED=true
|
|
|
|
# Email Configuration
|
|
EMAIL_SENDER=
|
|
|
|
# Database Configuration
|
|
DB_HOST=localhost # May need to be changed to `DB_HOST=db` if using devcontainer
|
|
DB_PORT=5432
|
|
POSTGRES_PASSWORD=postgres
|
|
POSTGRES_USER=postgres
|
|
|
|
# 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=
|
|
|
|
## Error and Performance Monitoring
|
|
# The app uses Sentry to monitor errors and performance. In reality, you likely don't need this unless you're deploying Maybe to many users.
|
|
SENTRY_DSN=
|
|
|
|
# If enabled, an invite code generated by `rake invites:create` is required to sign up as a new user.
|
|
# This is useful for controlling who can sign up for your Maybe instance.
|
|
REQUIRE_INVITE_CODE=false
|
|
|
|
# Enables self hosting features
|
|
SELF_HOSTING_ENABLED=false
|
|
|
|
# The hosting platform used to deploy the app (e.g. "render")
|
|
# `localhost` (or unset) is used for local development and testing
|
|
HOSTING_PLATFORM=localhost
|
|
|
|
# ======================================================================================================
|
|
# Upgrades Module - responsible for triggering upgrade alerts, prompts, and auto-upgrade functionality
|
|
# ======================================================================================================
|
|
#
|
|
# UPGRADES_ENABLED: Enables Upgrader class functionality.
|
|
# UPGRADES_MODE: Controls how the app will upgrade. `manual` means the user must manually upgrade the app. `auto` means the app will upgrade automatically (great for self-hosting)
|
|
# UPGRADES_TARGET: Controls what the app will upgrade to. `release` means the app will upgrade to the latest release. `commit` means the app will upgrade to the latest commit.
|
|
#
|
|
UPGRADES_ENABLED=false # unless editing the flow, you should keep this `false` locally in development
|
|
UPGRADES_MODE=manual # `manual` or `auto`
|
|
UPGRADES_TARGET=release # `release` or `commit`
|
|
|
|
|
|
# ======================================================================================================
|
|
# Git Repository Module - responsible for fetching latest commit data for upgrades
|
|
# ======================================================================================================
|
|
#
|
|
GITHUB_REPO_OWNER=maybe-finance
|
|
GITHUB_REPO_NAME=maybe
|
|
GITHUB_REPO_BRANCH=main
|
|
|
|
# ======================================================================================================
|
|
# Active Storage Configuration - responsible for storing file uploads
|
|
# ======================================================================================================
|
|
#
|
|
# * Defaults to disk storage but you can also use Amazon S3, Google Cloud Storage, or Microsoft Azure Storage.
|
|
# * 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
|
|
# ==========
|
|
# ACTIVE_STORAGE_SERVICE=amazon
|
|
# S3_ACCESS_KEY_ID=
|
|
# S3_SECRET_ACCESS_KEY=
|
|
# S3_REGION= # defaults to `us-east-1` if not set
|
|
# S3_BUCKET=
|
|
|
|
# Google Cloud Storage
|
|
# =====================
|
|
# Save your JSON keyfile as `gcp-storage-keyfile.json` in the root of the project
|
|
# ACTIVE_STORAGE_SERVICE=google
|
|
# GCS_PROJECT=
|
|
# GCS_BUCKET=
|
|
|
|
# Microsoft Azure Storage
|
|
# ========================
|
|
# ACTIVE_STORAGE_SERVICE=azure
|
|
# AZURE_STORAGE_ACCOUNT_NAME=
|
|
# AZURE_STORAGE_ACCESS_KEY=
|
|
# AZURE_STORAGE_CONTAINER= |