allow setting hsts for Rack::SSL
This commit is contained in:
parent
0468b1e327
commit
73c98ef9db
|
@ -33,7 +33,7 @@ class Travis::Web::App
|
||||||
def build(options = {})
|
def build(options = {})
|
||||||
builder = Rack::Builder.new
|
builder = Rack::Builder.new
|
||||||
if options[:environment] == 'production'
|
if options[:environment] == 'production'
|
||||||
builder.use Rack::SSL
|
builder.use Rack::SSL, hsts: Travis.config.ssl.hsts || true
|
||||||
end
|
end
|
||||||
builder.use Rack::Deflater
|
builder.use Rack::Deflater
|
||||||
builder.use Rack::Head
|
builder.use Rack::Head
|
||||||
|
|
Loading…
Reference in New Issue
Block a user