Skip to content

Commit

Permalink
Clarify comment on DSL re: rack URL
Browse files Browse the repository at this point in the history
  • Loading branch information
nateberkopec authored and MSP-Greg committed May 5, 2021
1 parent 7aac01f commit 78c7836
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/puma/dsl.rb
Expand Up @@ -381,8 +381,9 @@ def rackup(path)
@options[:rackup] ||= path.to_s
end

# Allows setting `env['rack.url_scheme']`, which may need to be set due
# to frontend configuration. Normal values are 'http' or 'https'.
# Allows setting `env['rack.url_scheme']`.
# Only necessary if X-Forwarded-Proto is not being set by your proxy
# Normal values are 'http' or 'https'.
def rack_url_scheme(scheme=nil)
@options[:rack_url_scheme] = scheme
end
Expand Down

0 comments on commit 78c7836

Please sign in to comment.