Created
February 5, 2019 17:09
-
-
Save subomi/cc4db4e3cc9bbeb491f1298d1043d765 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/routes.rb | |
flipper_auth_app = Flipper::UI.app(Flipper.instance) do |builder| | |
builder.use Rack::Auth::Basic do |username, password| | |
if username == ENV['FLIPPER_USERNAME'] && password == ENV['FLIPPER_PASSWORD'] | |
true | |
else | |
false | |
end | |
end | |
end | |
mount flipper_auth_app, at: '/flipper' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment