From 0c79ff01fe7eb5abf369e4c14edf8eeadb692c3b Mon Sep 17 00:00:00 2001 From: Lambda Date: Wed, 10 Dec 2025 15:19:24 -0500 Subject: Initial commit --- etc/cgitrc | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ etc/httpd/httpd.conf | 45 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 etc/cgitrc create mode 100644 etc/httpd/httpd.conf (limited to 'etc') 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 + + + Require all denied + + +DocumentRoot "/srv/www/htdocs/cgit" + + DirectoryIndex cgit.cgi + AddHandler cgi-script .cgi + AllowOverride None + Options +ExecCGI -FollowSymLinks + Require all granted + + +# Future proof + + Require all denied + \ No newline at end of file -- cgit v1.2.3-70-g09d2