Skip to content

Instantly share code, notes, and snippets.

@arsalanses
Created January 23, 2024 06:53
Show Gist options
  • Select an option

  • Save arsalanses/b8ed7ce830b5986c9e4385beb8046960 to your computer and use it in GitHub Desktop.

Select an option

Save arsalanses/b8ed7ce830b5986c9e4385beb8046960 to your computer and use it in GitHub Desktop.
cgit
scan-path=/var/www/cgit/
cache-scanrc-ttl=1
css=/cgit-data/cgit.css
logo=/cgit-data/cgit.png
favicon=/cgit-data/favicon.ico
# =========================================
# enable-http-clone=1
# clone-prefix=https://127.0.0.1:8080/cgit
# snapshots=zip
# enable-git-config=1
root-title=Arsalan Sefidgar Repositories
root-desc=[Personal projects]
repository-sort=age
virtual-root=/
# about-filter=/usr/lib/cgit/filters/about-formatting.sh
# readme=:README.md
# enable-commit-graph=1
services:
cgit:
image: clearlinux/cgit:latest
container_name: cgit
hostname: cgit
restart: always
ports:
- 127.0.0.1:8080:80
volumes:
- ./httpd-cgit.conf:/etc/httpd/conf.d/httpd-cgit.conf
- ./cgitrc:/etc/cgitrc
- ./cgit:/var/www/cgit
# set server name to start httpd from docker
ServerName localhost
DocumentRoot "/var/www/cgit"
<Directory "/var/www/cgit">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
# cgid module is required to run the cgit binary
LoadModule cgid_module lib/httpd/modules/mod_cgid.so
<IfModule cgid_module>
ScriptSock /var/run/cgid.sock
</IfModule>
# Path to cgit stylesheet, graphics
Alias /cgit-data /usr/share/cgit
<Directory "/usr/share/cgit">
AllowOverride None
Options None
Require all granted
</Directory>
# Path to cgit binary
ScriptAlias / /usr/libexec/cgit/cgi-bin/cgit/
<Directory "/usr/libexec/cgit/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment