Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-06-21 18:23:51 +0400
committerrandx <dmitriy.zaporozhets@gmail.com>2012-06-21 18:23:51 +0400
commited247b3893b8af5bfc266ebc03cc029ca31c800f (patch)
treeaf717dcb40db5efcb7d0839a78410e0f7cadde56 /config
parent2d16585eae242d055cc8ff97e5dcab842d3277cd (diff)
resque auth example
Diffstat (limited to 'config')
-rw-r--r--config/initializers/protect_resque.rb.example5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/initializers/protect_resque.rb.example b/config/initializers/protect_resque.rb.example
new file mode 100644
index 00000000000..d52815ffa9c
--- /dev/null
+++ b/config/initializers/protect_resque.rb.example
@@ -0,0 +1,5 @@
+require 'resque/server'
+Resque::Server.use(Rack::Auth::Basic) do |user, password|
+ user == "gitlab"
+ password == "5iveL!fe"
+end