diff options
| author | Lambda <lambda@disroot.org> | 2025-12-10 15:19:24 -0500 |
|---|---|---|
| committer | Lambda <lambda@disroot.org> | 2025-12-10 15:19:24 -0500 |
| commit | 0c79ff01fe7eb5abf369e4c14edf8eeadb692c3b (patch) | |
| tree | 36aed08de5add804cacb8286ef0768381ffa5b4a /etc | |
| download | cgit-docker-0c79ff01fe7eb5abf369e4c14edf8eeadb692c3b.tar.gz cgit-docker-0c79ff01fe7eb5abf369e4c14edf8eeadb692c3b.tar.bz2 cgit-docker-0c79ff01fe7eb5abf369e4c14edf8eeadb692c3b.zip | |
Initial commit
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/cgitrc | 57 | ||||
| -rw-r--r-- | etc/httpd/httpd.conf | 45 |
2 files changed, 102 insertions, 0 deletions
diff --git a/etc/cgitrc b/etc/cgitrc new file mode 100644 index 0000000..dad2e2a --- /dev/null +++ b/etc/cgitrc @@ -0,0 +1,57 @@ +# +# cgit Runtime Configuration +# see cgitrc(5) for details + +# +# General options +root-title=Git Repository Browser +root-desc=a fast webinterface for the git dscm +robots=noindex, nofollow +scan-path=/srv/git +source-filter=/opt/highlight.sh + +# +# Site options +enable-index-links=1 +enable-remote-branches=1 +enable-log-filecount=1 +enable-log-linecount=1 +enable-git-config=1 +snapshots=tar.gz tar.bz2 zip + +# +# Cache +cache-root=/var/cache/cgit +cache-size=1000 + +# +# Search for these files in the root of the default branch of repos. +# This will determine the "about" page for the repo. +readme=:README.md +readme=:readme.md +readme=:README.mkd +readme=:readme.mkd +readme=:README.rst +readme=:readme.rst +readme=:README.html +readme=:readme.html +readme=:README.htm +readme=:readme.htm +readme=:README.txt +readme=:readme.txt +readme=:README +readme=:readme +readme=:INSTALL.md +readme=:install.md +readme=:INSTALL.mkd +readme=:install.mkd +readme=:INSTALL.rst +readme=:install.rst +readme=:INSTALL.html +readme=:install.html +readme=:INSTALL.htm +readme=:install.htm +readme=:INSTALL.txt +readme=:install.txt +readme=:INSTALL +readme=:install diff --git a/etc/httpd/httpd.conf b/etc/httpd/httpd.conf new file mode 100644 index 0000000..d99bd92 --- /dev/null +++ b/etc/httpd/httpd.conf @@ -0,0 +1,45 @@ +## +## Apache Server Configuration +## + +ServerRoot /etc/httpd + +# +# Load Standard Modules +LoadModule authz_core_module modules/mod_authz_core.so +LoadModule unixd_module modules/mod_unixd.so +LoadModule log_config_module modules/mod_log_config.so +LoadModule logio_module modules/mod_logio.so +LoadModule mime_magic_module modules/mod_mime_magic.so +LoadModule mime_module modules/mod_mime.so +LoadModule mpm_prefork_module modules/mod_mpm_prefork.so +LoadModule cgi_module modules/mod_cgi.so +LoadModule dir_module modules/mod_dir.so + +# +# Server config +Listen 0.0.0.0:80 +ServerName localhost +ServerAdmin root@localhost +EnableSendFile on +AddDefaultCharset UTF-8 +TypesConfig /etc/mime.types +MIMEMagicFile conf/magic + +<Directory /> + Require all denied +</Directory> + +DocumentRoot "/srv/www/htdocs/cgit" +<Directory "/srv/www/htdocs/cgit/"> + DirectoryIndex cgit.cgi + AddHandler cgi-script .cgi + AllowOverride None + Options +ExecCGI -FollowSymLinks + Require all granted +</Directory> + +# Future proof +<Files ".ht"> + Require all denied +</Files>
\ No newline at end of file |
