first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
13
base/gitlist/0.6.0/Dockerfile
Normal file
13
base/gitlist/0.6.0/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM php:7.1-apache
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
COPY config.ini /var/www/html/
|
||||
|
||||
ENV GITLIST_LINK https://github.com/klaussilveira/gitlist/releases/download/0.6.0/gitlist-0.6.0.tar.gz
|
||||
|
||||
RUN apt-get update && apt-get install -y wget git \
|
||||
&& find /var/lib/apt/lists -type f -exec rm {} \; \
|
||||
&& curl -sL $GITLIST_LINK | tar --strip-components 1 -C /var/www/html -xzf - \
|
||||
&& mkdir /var/www/html/cache && chmod 777 /var/www/html/cache \
|
||||
&& a2enmod rewrite
|
57
base/gitlist/0.6.0/config.ini
Normal file
57
base/gitlist/0.6.0/config.ini
Normal file
@@ -0,0 +1,57 @@
|
||||
[git]
|
||||
client = '/usr/bin/git' ; Your git executable path
|
||||
default_branch = 'master' ; Default branch when HEAD is detached
|
||||
repositories[] = '/data/' ; Path to your repositories
|
||||
; If you wish to add more repositories, just add a new line
|
||||
|
||||
; WINDOWS USERS
|
||||
;client = '"C:\Program Files (x86)\Git\bin\git.exe"' ; Your git executable path
|
||||
;repositories[] = 'C:\Path\to\Repos\' ; Path to your repositories
|
||||
|
||||
; You can hide repositories from GitList, just copy this for each repository you want to hide or add a regex (including delimiters), eg. hidden[] = '/(.+)\.git/'
|
||||
; hidden[] = '/home/git/repositories/BetaTest'
|
||||
|
||||
[app]
|
||||
debug = false
|
||||
cache = true
|
||||
theme = "default"
|
||||
title = ""
|
||||
|
||||
[clone_button]
|
||||
; ssh remote
|
||||
show_ssh_remote = false ; display remote URL for SSH
|
||||
ssh_host = '' ; host to use for cloning via HTTP (default: none => uses gitlist web host)
|
||||
ssh_url_subdir = '' ; if cloning via SSH is triggered using special dir (e.g. ssh://example.com/git/repo.git)
|
||||
; has to end with trailing slash
|
||||
ssh_user = 'git' ; user to use for cloning via SSH
|
||||
ssh_user_dynamic = false ; when enabled, ssh_user is set to $_SERVER['PHP_AUTH_USER']
|
||||
|
||||
; http remote
|
||||
show_http_remote = false ; display remote URL for HTTP
|
||||
http_host = '' ; host to use for cloning via HTTP (default: none => uses gitlist web host)
|
||||
use_https = true ; generate URL with https://
|
||||
http_url_subdir = 'git/' ; if cloning via HTTP is triggered using virtual dir (e.g. https://example.com/git/repo.git)
|
||||
; has to end with trailing slash
|
||||
http_user = '' ; user to use for cloning via HTTP (default: none)
|
||||
http_user_dynamic = false ; when enabled, http_user is set to $_SERVER['PHP_AUTH_USER']
|
||||
|
||||
; If you need to specify custom filetypes for certain extensions, do this here
|
||||
[filetypes]
|
||||
; extension = type
|
||||
; dist = xml
|
||||
|
||||
; If you need to set file types as binary or not, do this here
|
||||
[binary_filetypes]
|
||||
; extension = true
|
||||
; svh = false
|
||||
; map = true
|
||||
|
||||
; set the timezone
|
||||
[date]
|
||||
timezone = Asia/Shanghai
|
||||
format = 'Y-m-d H:i:s'
|
||||
|
||||
; custom avatar service
|
||||
[avatar]
|
||||
; url = '//gravatar.com/avatar/'
|
||||
; query[] = 'd=identicon'
|
Reference in New Issue
Block a user