Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_cgitrc.j2 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. # Enable caching of up to 1000 output entries
  2. cache-size=1000
  3. # Specify some default clone urls using macro expansion
  4. clone-url=git@{{ domain }}:$CGIT_REPO_URL
  5. # Specify the css url
  6. # css=/css/cgit.css
  7. # Show owner on index page
  8. enable-index-owner=1
  9. # Allow http transport git clone
  10. enable-http-clone=0
  11. # Show extra links for each repository on the index page
  12. enable-index-links=1
  13. # Enable ASCII art commit history graph on the log pages
  14. enable-commit-graph=1
  15. # Show number of affected files per commit on the log pages
  16. enable-log-filecount=1
  17. # Show number of added/removed lines per commit on the log pages
  18. enable-log-linecount=1
  19. # Sort branches by date
  20. branch-sort=age
  21. # Add a cgit favicon
  22. # favicon=/favicon.ico
  23. # Use a custom logo
  24. # logo=/img/mylogo.png
  25. # Enable statistics per week, month and quarter
  26. max-stats=quarter
  27. # Set the title and heading of the repository index page
  28. root-title={{ domain }} git repository
  29. # Set a subheading for the repository index page
  30. # root-desc=tracking the foobar development
  31. # Include some more info about example.com on the index page
  32. # root-readme=/var/www/htdocs/about.html
  33. # Allow download of tar.gz, tar.bz2 and zip-files
  34. snapshots=tar.gz tar.bz2 zip
  35. ##
  36. ## List of common mimetypes
  37. ##
  38. mimetype.gif=image/gif
  39. mimetype.html=text/html
  40. mimetype.jpg=image/jpeg
  41. mimetype.jpeg=image/jpeg
  42. mimetype.pdf=application/pdf
  43. mimetype.png=image/png
  44. mimetype.svg=image/svg+xml
  45. # Highlight source code with python pygments-based highlighter
  46. source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.py
  47. # Format markdown, restructuredtext, manpages, text files, and html files
  48. # through the right converters
  49. about-filter=/usr/local/lib/cgit/filters/about-formatting.sh
  50. ##
  51. ## Search for these files in the root of the default branch of repositories
  52. ## for coming up with the about page:
  53. ##
  54. readme=:README.md
  55. readme=:readme.md
  56. readme=:README.mkd
  57. readme=:readme.mkd
  58. readme=:README.rst
  59. readme=:readme.rst
  60. readme=:README.html
  61. readme=:readme.html
  62. readme=:README.htm
  63. readme=:readme.htm
  64. readme=:README.txt
  65. readme=:readme.txt
  66. readme=:README
  67. readme=:readme
  68. readme=:INSTALL.md
  69. readme=:install.md
  70. readme=:INSTALL.mkd
  71. readme=:install.mkd
  72. readme=:INSTALL.rst
  73. readme=:install.rst
  74. readme=:INSTALL.html
  75. readme=:install.html
  76. readme=:INSTALL.htm
  77. readme=:install.htm
  78. readme=:INSTALL.txt
  79. readme=:install.txt
  80. readme=:INSTALL
  81. readme=:install
  82. # Allow cgit to use git config to set any repo specific settings
  83. enable-git-config=1
  84. # Removes .git suffix for the url and name
  85. remove-suffix=1
  86. # A list of subdirectories inside of scan-path
  87. # that should loaded as git repositories
  88. project-list=/home/git/projects.list
  89. # A path which will be scanned for repositories
  90. scan-path=/home/git/repositories