Skip to content

Commit

Permalink
disabled ssl for enterprise (#128)
Browse files Browse the repository at this point in the history
* disabled ssl for enterprise

* pass through conig
  • Loading branch information
Tahsin-travis-ci authored Dec 19, 2019
1 parent 3a9ce12 commit 7146195
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ require 'rack/ssl-enforcer'
require 'travis/yml/web'

env = Travis::Yml::Web::Env
config ||= Travis::Yml::Web::Config.load

if env.production?
use Rack::SslEnforcer
use Rack::SslEnforcer unless config.is_enterprise?
use Travis::Yml::Web::BasicAuth

elsif env.staging?
Expand Down
3 changes: 2 additions & 1 deletion lib/travis/yml/web/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

module Travis::Yml::Web
class Config < Travis::Config
define auth_keys: ['abc123']
define auth_keys: ['abc123'],
is_enterprise: ENV['TRAVIS_ENTERPRISE'] || false
end
end

0 comments on commit 7146195

Please sign in to comment.