Much work.
This commit is contained in:
@@ -87,4 +87,18 @@ Rails.application.configure do
|
||||
#
|
||||
# Skip DNS rebinding protection for the default health check endpoint.
|
||||
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
|
||||
|
||||
# Docker Compose friendly settings
|
||||
config.log_level = :info
|
||||
config.log_tags = [ :request_id ]
|
||||
|
||||
# Log to stdout for Docker container logging
|
||||
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
||||
logger = ActiveSupport::Logger.new(STDOUT)
|
||||
logger.formatter = config.log_formatter
|
||||
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
||||
end
|
||||
|
||||
# Serve static files (Docker Compose deployments typically don't have a separate web server)
|
||||
config.public_file_server.enabled = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user