28beb28a78
- Added listen gem because rails app:update failed without it - Removes nsa gem because it requires activesupport < 6 Oddly, there's a newer version per GitHub that's not on RubyGems that raises the requirement to < 7. But, we need a new release before we can use that. - Upgrade rails-i18n to v6, for Rails 6 compatibility - Remove redis-rails since it requires Rails < 6, but we can just use the regular Rails :redis_cache_store that was introduced in 5.2. - Run `rails app:update` - Had to weed through the `config/environments` changes to pick up newly added settings, while not losing settings that were intentionally configured - This generated config/initializers/new_framework_defaults_6_0.rb. The goal is to uncomment all of the settings in that file. Once they're all uncommented, delete the file and edit config/application.rb's load_defaults to be 6.0. - force_ssl controller method is deprecated in favor of a Rails config setting. - bin/setup was generated by Rails - Verbose query logging in development is really helpful. It shows you what line of code caused a query to execute. - Calling establish_connection after worker boot isn't necessary with ActiveRecord anymore. ActiveRecord handles it gracefully. - Rails generated a migration to add a foreign key for ActiveStorage. Gab currently doesn't use ActiveStorage, and instead uses Paperclip (since ActiveStorage didn't exist when Mastadon started). So, this change isn't relevant to Gab. - Added ` || ''` in the profiles controller, because I was unable to save a change to a newly created profile. (This probably explains the 500 error I received on prod Gab recently.)
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
test:
|
|
service: Disk
|
|
root: <%= Rails.root.join("tmp/storage") %>
|
|
|
|
local:
|
|
service: Disk
|
|
root: <%= Rails.root.join("storage") %>
|
|
|
|
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
|
# amazon:
|
|
# service: S3
|
|
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
|
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
|
# region: us-east-1
|
|
# bucket: your_own_bucket
|
|
|
|
# Remember not to checkin your GCS keyfile to a repository
|
|
# google:
|
|
# service: GCS
|
|
# project: your_project
|
|
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
|
# bucket: your_own_bucket
|
|
|
|
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
|
# microsoft:
|
|
# service: AzureStorage
|
|
# storage_account_name: your_account_name
|
|
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
|
# container: your_container_name
|
|
|
|
# mirror:
|
|
# service: Mirror
|
|
# primary: local
|
|
# mirrors: [ amazon, google, microsoft ]
|