Commit 86807b8e authored by Saito's avatar Saito

mount grack to git, u can 'git clone http://localhost/git/xx.git' now

parent 61b85aed
......@@ -17,11 +17,15 @@ git_host:
base_path: /home/git/repositories/
host: localhost
git_user: git
upload_pack: true
receive_pack: true
# port: 22
# Git settings
# Use default values unless you understand it
git:
path: /usr/bin/git
# Max size of git object like commit, in bytes
# This value can be increased if you have a very large commits
git_max_size: 5242880 # 5.megabytes
......
module Grack
class Auth < Rack::Auth::Basic
def valid?
true
end
end
end
......@@ -8,6 +8,14 @@ Gitlab::Application.routes.draw do
require 'resque/server'
mount Resque::Server.new, at: '/info/resque'
# Enable Grack support
mount Grack::Bundle.new({
git_path: GIT_OPTS['path'],
project_root: GIT_HOST['base_path'],
upload_pack: GIT_HOST['upload_pack'],
receive_pack: GIT_HOST['receive_pack']
}), at: '/git'
#
# Help
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment