Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
e1ec25b7
Commit
e1ec25b7
authored
Oct 16, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
github mirror now using git-http-backend
parent
ebb1a05e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
+18
-1
playbooks/roles/gh_mirror/defaults/main.yml
+2
-0
playbooks/roles/gh_mirror/tasks/main.yml
+6
-0
playbooks/roles/nginx/templates/gh_mirror.j2
+10
-1
No files found.
playbooks/roles/gh_mirror/defaults/main.yml
View file @
e1ec25b7
...
@@ -13,6 +13,8 @@ gh_mirror_orgs:
...
@@ -13,6 +13,8 @@ gh_mirror_orgs:
-
mfogel
-
mfogel
-
mitocw
-
mitocw
-
Stanford-Online
-
Stanford-Online
gh_mirror_debian_pkgs
:
-
fcgiwrap
gh_mirror_pip_pkgs
:
gh_mirror_pip_pkgs
:
-
pyyaml
-
pyyaml
-
requests
-
requests
...
...
playbooks/roles/gh_mirror/tasks/main.yml
View file @
e1ec25b7
...
@@ -3,6 +3,12 @@
...
@@ -3,6 +3,12 @@
pip
:
name={{ item }} state=present
pip
:
name={{ item }} state=present
with_items
:
gh_mirror_pip_pkgs
with_items
:
gh_mirror_pip_pkgs
-
name
:
gh_mirror | install debian packages
apt
:
>
pkg={{ ",".join(gh_mirror_debian_pkgs) }}
state=present
update_cache=yes
-
name
:
gh_mirror | create gh_mirror user
-
name
:
gh_mirror | create gh_mirror user
user
:
>
user
:
>
name={{ gh_mirror_user }}
name={{ gh_mirror_user }}
...
...
playbooks/roles/nginx/templates/gh_mirror.j2
View file @
e1ec25b7
server {
server {
listen {{ gh_mirror_nginx_port }};
listen {{ gh_mirror_nginx_port }};
server_name {{ gh_mirror_server_name }};
server_name {{ gh_mirror_server_name }};
location
/
{
location
~ (/.*)
{
root {{ gh_mirror_data_dir }};
root {{ gh_mirror_data_dir }};
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
# This won't work if the include is put before
# SCRIPT_FILENAME
include fastcgi_params;
# export all repositories under GIT_PROJECT_ROOT
fastcgi_param GIT_HTTP_EXPORT_ALL "";
fastcgi_param GIT_PROJECT_ROOT {{ gh_mirror_data_dir }};
fastcgi_param PATH_INFO $1;
}
}
}
}
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