Last active
December 12, 2015 03:18
-
-
Save nowk/4705405 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Disable Rails's static asset server (Apache or nginx will already do this) | |
config.serve_static_assets = true | |
config.middleware.insert_after(::Rack::Lock, "::Rack::Auth::Basic", "Staging") do |u, p| | |
[u, p] == [ENV['BASIC_AUTH_USER'], ENV['BASIC_AUTH_PASSWORD']] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment