1
0

gitolite3.rc 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. # configuration variables for gitolite
  2. # This file is in perl syntax. But you do NOT need to know perl to edit it --
  3. # just mind the commas, use single quotes unless you know what you're doing,
  4. # and make sure the brackets and braces stay matched up!
  5. # (Tip: perl allows a comma after the last item in a list also!)
  6. # HELP for commands can be had by running the command with "-h".
  7. # HELP for all the other FEATURES can be found in the documentation (look for
  8. # "list of non-core programs shipped with gitolite" in the master index) or
  9. # directly in the corresponding source file.
  10. %RC = (
  11. # ------------------------------------------------------------------
  12. # default umask gives you perms of '0700'; see the rc file docs for
  13. # how/why you might change this
  14. UMASK => 0077,
  15. # look for "git-config" in the documentation
  16. GIT_CONFIG_KEYS => '',
  17. # comment out if you don't need all the extra detail in the logfile
  18. LOG_EXTRA => 1,
  19. # syslog options
  20. # 1. leave this section as is for normal gitolite logging
  21. # 2. uncomment this line to log only to syslog:
  22. # LOG_DEST => 'syslog',
  23. # 3. uncomment this line to log to syslog and the normal gitolite log:
  24. # LOG_DEST => 'syslog,normal',
  25. # roles. add more roles (like MANAGER, TESTER, ...) here.
  26. # WARNING: if you make changes to this hash, you MUST run 'gitolite
  27. # compile' afterward, and possibly also 'gitolite trigger POST_COMPILE'
  28. ROLES => {
  29. READERS => 1,
  30. WRITERS => 1,
  31. },
  32. # enable caching (currently only Redis). PLEASE RTFM BEFORE USING!!!
  33. # CACHE => 'Redis',
  34. # ------------------------------------------------------------------
  35. # rc variables used by various features
  36. # the 'info' command prints this as additional info, if it is set
  37. # SITE_INFO => 'Please see http://blahblah/gitolite for more help',
  38. # the CpuTime feature uses these
  39. # display user, system, and elapsed times to user after each git operation
  40. # DISPLAY_CPU_TIME => 1,
  41. # display a warning if total CPU times (u, s, cu, cs) crosses this limit
  42. # CPU_TIME_WARN_LIMIT => 0.1,
  43. # the Mirroring feature needs this
  44. # HOSTNAME => "foo",
  45. # TTL for redis cache; PLEASE SEE DOCUMENTATION BEFORE UNCOMMENTING!
  46. # CACHE_TTL => 600,
  47. # ------------------------------------------------------------------
  48. # suggested locations for site-local gitolite code (see cust.html)
  49. # this one is managed directly on the server
  50. # LOCAL_CODE => "$ENV{HOME}/local",
  51. # or you can use this, which lets you put everything in a subdirectory
  52. # called "local" in your gitolite-admin repo. For a SECURITY WARNING
  53. # on this, see http://gitolite.com/gitolite/non-core.html#pushcode
  54. # LOCAL_CODE => "$rc{GL_ADMIN_BASE}/local",
  55. # ------------------------------------------------------------------
  56. # List of commands and features to enable
  57. ENABLE => [
  58. # COMMANDS
  59. # These are the commands enabled by default
  60. 'help',
  61. 'desc',
  62. 'info',
  63. 'perms',
  64. 'writable',
  65. # Uncomment or add new commands here.
  66. # 'create',
  67. # 'fork',
  68. # 'mirror',
  69. # 'readme',
  70. # 'sskm',
  71. # 'D',
  72. # These FEATURES are enabled by default.
  73. # essential (unless you're using smart-http mode)
  74. 'ssh-authkeys',
  75. # creates git-config enties from gitolite.conf file entries like 'config foo.bar = baz'
  76. 'git-config',
  77. # creates git-daemon-export-ok files; if you don't use git-daemon, comment this out
  78. 'daemon',
  79. # creates projects.list file; if you don't use gitweb, comment this out
  80. #'gitweb',
  81. # These FEATURES are disabled by default; uncomment to enable. If you
  82. # need to add new ones, ask on the mailing list :-)
  83. # user-visible behaviour
  84. # prevent wild repos auto-create on fetch/clone
  85. # 'no-create-on-read',
  86. # no auto-create at all (don't forget to enable the 'create' command!)
  87. # 'no-auto-create',
  88. # access a repo by another (possibly legacy) name
  89. # 'Alias',
  90. # give some users direct shell access. See documentation in
  91. # sts.html for details on the following two choices.
  92. # "Shell $ENV{HOME}/.gitolite.shell-users",
  93. # 'Shell alice bob',
  94. # set default roles from lines like 'option default.roles-1 = ...', etc.
  95. # 'set-default-roles',
  96. # show more detailed messages on deny
  97. # 'expand-deny-messages',
  98. # show a message of the day
  99. # 'Motd',
  100. # system admin stuff
  101. # enable mirroring (don't forget to set the HOSTNAME too!)
  102. # 'Mirroring',
  103. # allow people to submit pub files with more than one key in them
  104. # 'ssh-authkeys-split',
  105. # selective read control hack
  106. # 'partial-copy',
  107. # manage local, gitolite-controlled, copies of read-only upstream repos
  108. # 'upstream',
  109. # updates 'description' file instead of 'gitweb.description' config item
  110. # 'cgit',
  111. # allow repo-specific hooks to be added
  112. # 'repo-specific-hooks',
  113. # performance, logging, monitoring...
  114. # be nice
  115. # 'renice 10',
  116. # log CPU times (user, system, cumulative user, cumulative system)
  117. # 'CpuTime',
  118. # syntactic_sugar for gitolite.conf and included files
  119. # allow backslash-escaped continuation lines in gitolite.conf
  120. # 'continuation-lines',
  121. # create implicit user groups from directory names in keydir/
  122. # 'keysubdirs-as-groups',
  123. # allow simple line-oriented macros
  124. # 'macros',
  125. # Kindergarten mode
  126. # disallow various things that sensible people shouldn't be doing anyway
  127. # 'Kindergarten',
  128. ],
  129. );
  130. # ------------------------------------------------------------------------------
  131. # per perl rules, this should be the last line in such a file:
  132. 1;
  133. # Local variables:
  134. # mode: perl
  135. # End:
  136. # vim: set syn=perl: