Skip to content

Commit

Permalink
Present config.public_file_server.enabled as opt-out
Browse files Browse the repository at this point in the history
Follow-up to rails#47137.

Since `config.public_file_server.enabled` is true by default, this
commit changes the `config/environments/production.rb` template to
present the setting as an opt-out.
  • Loading branch information
jonathanhefner committed Oct 30, 2023
1 parent b897b4c commit dd428f1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions actionmailbox/test/dummy/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
# config.require_master_key = true

# Enable static file serving from the `/public` folder (turn off if using NGINX/Apache for it).
config.public_file_server.enabled = true
# Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
# config.public_file_server.enabled = false

# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass
Expand Down
4 changes: 2 additions & 2 deletions actiontext/test/dummy/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
# config.require_master_key = true

# Enable static file serving from the `/public` folder (turn off if using NGINX/Apache for it).
config.public_file_server.enabled = true
# Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
# config.public_file_server.enabled = false

# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass
Expand Down
4 changes: 2 additions & 2 deletions activestorage/test/dummy/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
# config.require_master_key = true

# Enable static file serving from the `/public` folder (turn off if using NGINX/Apache for it).
config.public_file_server.enabled = true
# Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
# config.public_file_server.enabled = false

# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Rails.application.configure do
# key such as config/credentials/production.key. This key is used to decrypt credentials (and other encrypted files).
# config.require_master_key = true

# Enable static file serving from the `/public` folder (turn off if using NGINX/Apache for it).
config.public_file_server.enabled = true
# Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
# config.public_file_server.enabled = false

<%- unless skip_sprockets? -%>
# Compress CSS using a preprocessor.
Expand Down

0 comments on commit dd428f1

Please sign in to comment.