forked from nmarus/docker-gitbox
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow read without authentication
- Loading branch information
Showing
3 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# gitbox with gitlist v.0.5.0 | ||
# gitbox with gitlist v.1.0.1 | ||
# https://github.com/nmarus/docker-gitbox | ||
# Nicholas Marus <[email protected]> | ||
|
||
|
@@ -38,14 +38,15 @@ RUN sed -i 's/FCGI_USER="www-data"/FCGI_USER="git"/g' /etc/init.d/fcgiwrap && \ | |
|
||
# Install gitlist | ||
RUN mkdir -p /var/www && \ | ||
wget -q -O /var/www/gitlist-0.5.0.tar.gz https://s3.amazonaws.com/gitlist/gitlist-0.5.0.tar.gz && \ | ||
tar -zxvf /var/www/gitlist-0.5.0.tar.gz -C /var/www && \ | ||
wget -q -O /var/www/gitlist-v1.0.1.tar.gz https://github.com/klaussilveira/gitlist/releases/download/v1.0.1/gitlist-v1.0.1.tar.gz && \ | ||
tar -zxvf /var/www/gitlist-v1.0.1.tar.gz -C /var/www && \ | ||
chmod -R 777 /var/www/gitlist && \ | ||
mkdir -p /var/www/gitlist/cache && \ | ||
chmod 777 /var/www/gitlist/cache | ||
|
||
# Create config files for container startup and nginx | ||
COPY nginx.conf /etc/nginx/nginx.conf | ||
COPY git-http-backend.conf /etc/nginx/git-http-backend.conf | ||
|
||
# Create config files for container | ||
COPY config.ini /var/www/gitlist/config.ini | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
client_max_body_size 0; | ||
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend; | ||
fastcgi_param GIT_HTTP_EXPORT_ALL ""; | ||
fastcgi_param GIT_PROJECT_ROOT /repos; | ||
fastcgi_param PATH_INFO $1; | ||
fastcgi_param REMOTE_USER $remote_user; | ||
include /etc/nginx/fastcgi_params; | ||
fastcgi_pass unix:/var/run/fcgiwrap.socket; |
This file contains 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