-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disabled ssl for enterprise #128
Conversation
it is a diffent file, but @config is a class attribute |
BaseAuth class has it's own config method. we are not using BaseAuth class on config.ru. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling auth module looks weird of course. Looks like a bigger refactoring is needed here as Sven told me that config should be initialized just once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok for current needs
fwiw, just for future reference (no action needed, i'll clean these up myself)
put together this is sufficient: class Config < Travis::Config
define enterprise: false,
# ...
end and then: use Rack::SslEnforcer unless config.enterprise? can be quickly tested like this, too:
|
@svenfuchs Thanks for your suggestion. I will follow it in future. I modified the code accordingly in a separate PR #146 |
Objective: