Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
86807b8e
Commit
86807b8e
authored
Jun 29, 2012
by
Saito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mount grack to git, u can 'git clone
http://localhost/git/xx.git
' now
parent
61b85aed
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
22 deletions
+42
-22
config/gitlab.yml.example
config/gitlab.yml.example
+4
-0
config/initializers/grack_auth.rb
config/initializers/grack_auth.rb
+8
-0
config/routes.rb
config/routes.rb
+30
-22
No files found.
config/gitlab.yml.example
View file @
86807b8e
...
@@ -17,11 +17,15 @@ git_host:
...
@@ -17,11 +17,15 @@ git_host:
base_path: /home/git/repositories/
base_path: /home/git/repositories/
host: localhost
host: localhost
git_user: git
git_user: git
upload_pack: true
receive_pack: true
# port: 22
# port: 22
# Git settings
# Git settings
# Use default values unless you understand it
# Use default values unless you understand it
git:
git:
path: /usr/bin/git
# Max size of git object like commit, in bytes
# Max size of git object like commit, in bytes
# This value can be increased if you have a very large commits
# This value can be increased if you have a very large commits
git_max_size: 5242880 # 5.megabytes
git_max_size: 5242880 # 5.megabytes
...
...
config/initializers/grack_auth.rb
0 → 100644
View file @
86807b8e
module
Grack
class
Auth
<
Rack
::
Auth
::
Basic
def
valid?
true
end
end
end
config/routes.rb
View file @
86807b8e
...
@@ -8,6 +8,14 @@ Gitlab::Application.routes.draw do
...
@@ -8,6 +8,14 @@ Gitlab::Application.routes.draw do
require
'resque/server'
require
'resque/server'
mount
Resque
::
Server
.
new
,
at:
'/info/resque'
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
# Help
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment