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