* Add documentation for ENVied & SiteConfig * Add images * Fix swapped screenshots and update list
42 lines
1.4 KiB
Markdown
42 lines
1.4 KiB
Markdown
---
|
|
title: Configuration
|
|
---
|
|
|
|
# Configuration
|
|
|
|
We currently use two gems for configuring the application:
|
|
|
|
- [ENVied](https://github.com/eval/envied)
|
|
- [rails-settings-cached](https://github.com/huacnlee/rails-settings-cached)
|
|
|
|
## 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`](https://github.com/thepracticaldev/dev.to/blob/master/Envfile) (see
|
|
[Configuring Environment Variables](../getting-started/config-env.md)) and
|
|
viewed at `/internal/config` (see [Accessing the admin panel](./admin.md)):
|
|
|
|

|
|
|
|
## 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`](https://github.com/thepracticaldev/dev.to/blob/master/app/models/site_config.rb)
|
|
object and viewed / modified via `/internal/config` (see
|
|
[Accessing the admin panel](./admin.md)).
|
|
|
|

|