Configuration

We currently use two gems for configuring the application:

ENVied

This gem is primarily used for configuring environment variables related to credentials and third party services. Examples:

  • REDIS_URL
  • FASTLY_API_KEY
  • STRIPE_SECRET_KEY

Settings managed via ENVied can be found in Envfile (see Configuring Environment Variables) and viewed at /internal/config (see Accessing the admin panel):

Screenshot of env variable admin interface

rails-settings-cached

We use this gem for managing settings used within the app's business logic. Examples:

  • main_social_image
  • rate_limit_follow_count_daily
  • suggested_tags

These settings can be accessed via the SiteConfig object and viewed / modified via /internal/config (see Accessing the admin panel).

Screenshot of site configuration admin interface