import rt 3.4.5
[freeside.git] / rt / etc / RT_Config.pm.in
1 #
2 # WARNING: NEVER EDIT RT_Config.pm. Instead, copy any sections you want to change to RT_SiteConfig.pm
3 # and edit them there.
4 #
5
6 package RT;
7
8 =head1 NAME
9
10 RT::Config
11
12 =for testing
13
14 use RT::Config;
15
16 =cut
17
18 # {{{ Base Configuration
19
20 # $rtname is the string that RT will look for in mail messages to
21 # figure out what ticket a new piece of mail belongs to
22
23 # Your domain name is recommended, so as not to pollute the namespace.
24 # once you start using a given tag, you should probably never change it.
25 # (otherwise, mail for existing tickets won't get put in the right place
26
27 Set($rtname , "example.com");
28
29
30 # This regexp controls what subject tags RT recognizes as its own.
31 # If you're not dealing with historical $rtname values, you'll likely
32 # never have to enable this feature.
33 #
34 # Be VERY CAREFUL with it. Note that it overrides $rtname for subject
35 # token matching and that you should use only "non-capturing" parenthesis
36 # grouping. For example:
37 #
38 #       Set($EmailSubjectTagRegex, qr/(?:example.com|example.org)/i );
39 #
40 # and NOT
41
42 #       Set($EmailSubjectTagRegex, qr/(example.com|example.org)/i );
43 #
44 # This setting would make RT behave exactly as it does without the 
45 # setting enabled.
46 #
47 # Set($EmailSubjectTagRegex, qr/\Q$rtname\E/i );
48
49
50
51 # You should set this to your organization's DNS domain. For example,
52 # fsck.com or asylum.arkham.ma.us. It's used by the linking interface to
53 # guarantee that ticket URIs are unique and easy to construct.
54
55 Set($Organization , "example.com");
56
57 # $user_passwd_min defines the minimum length for user passwords. Setting
58 # it to 0 disables this check
59 Set($MinimumPasswordLength , "5");
60
61 # $Timezone is used to convert times entered by users into GMT and back again
62 # It should be set to a timezone recognized by your local unix box.
63 Set($Timezone , 'US/Eastern');
64
65 # }}}
66
67 # {{{ Database Configuration
68
69 # Database driver beeing used. Case matters
70 # Valid types are "mysql", "Oracle" and "Pg"
71
72 Set($DatabaseType , '@DB_TYPE@');
73
74 # The domain name of your database server
75 # If you're running mysql and it's on localhost,
76 # leave it blank for enhanced performance
77 Set($DatabaseHost   , '@DB_HOST@');
78 Set($DatabaseRTHost , '@DB_RT_HOST@');
79
80 # The port that your database server is running on.  Ignored unless it's
81 # a positive integer. It's usually safe to leave this blank
82 Set($DatabasePort , '@DB_PORT@');
83
84 #The name of the database user (inside the database)
85 Set($DatabaseUser , '@DB_RT_USER@');
86
87 # Password the DatabaseUser should use to access the database
88 Set($DatabasePassword , '@DB_RT_PASS@');
89
90 # The name of the RT's database on your database server
91 Set($DatabaseName , '@DB_DATABASE@');
92
93 # If you're using Postgres and have compiled in SSL support,
94 # set DatabaseRequireSSL to 1 to turn on SSL communication
95 Set($DatabaseRequireSSL , undef);
96
97 # }}}
98
99 # {{{ Incoming mail gateway configuration
100
101 # OwnerEmail is the address of a human who manages RT. RT will send
102 # errors generated by the mail gateway to this address.  This address
103 # should _not_ be an address that's managed by your RT instance.
104
105 Set($OwnerEmail , 'root');
106
107 # If $LoopsToRTOwner is defined, RT will send mail that it believes
108 # might be a loop to $RT::OwnerEmail
109
110 Set($LoopsToRTOwner , 1);
111
112 # If $StoreLoops is defined, RT will record messages that it believes
113 # to be part of mail loops.
114 # As it does this, it will try to be careful not to send mail to the
115 # sender of these messages
116
117 Set($StoreLoops , undef);
118
119 # $MaxAttachmentSize sets the maximum size (in bytes) of attachments stored
120 # in the database.
121
122 # For mysql and oracle, we set this size at 10 megabytes.
123 # If you're running a postgres version earlier than 7.1, you will need
124 # to drop this to 8192. (8k)
125
126 Set($MaxAttachmentSize , 10000000);
127
128 # $TruncateLongAttachments: if this is set to a non-undef value,
129 # RT will truncate attachments longer than MaxAttachmentSize.
130
131 Set($TruncateLongAttachments , undef);
132
133 # $DropLongAttachments: if this is set to a non-undef value,
134 # RT will silently drop attachments longer than MaxAttachmentSize.
135
136 Set($DropLongAttachments , undef);
137
138 # If $ParseNewMessageForTicketCcs is true, RT will attempt to divine
139 # Ticket 'Cc' watchers from the To and Cc lines of incoming messages
140 # Be forewarned that if you have _any_ addresses which forward mail to
141 # RT automatically and you enable this option without modifying
142 # "RTAddressRegexp" below, you will get yourself into a heap of trouble.
143
144 Set($ParseNewMessageForTicketCcs , undef);
145
146 # RTAddressRegexp is used to make sure RT doesn't add itself as a ticket CC if
147 # the setting above is enabled.
148
149 Set($RTAddressRegexp , '^rt\@example.com$');
150
151 # RT provides functionality which allows the system to rewrite
152 # incoming email addresses.  In its simplest form,
153 # you can substitute the value in CanonicalizeEmailAddressReplace
154 # for the value in CanonicalizeEmailAddressMatch
155 # (These values are passed to the CanonicalizeEmailAddress subroutine in RT/User.pm)
156 # By default, that routine performs a s/$Match/$Replace/gi on any address passed to it
157
158 #Set($CanonicalizeEmailAddressMatch , '@subdomain\.example\.com$');
159 #Set($CanonicalizeEmailAddressReplace , '@example.com');
160
161 # set this to true and the create new user page will use the values that you
162 # enter in the form but use the function CanonicalizeUserInfo in User_Local.pm
163 Set($CanonicalizeOnCreate , 0);
164
165 # If $SenderMustExistInExternalDatabase is true, RT will refuse to
166 # create non-privileged accounts for unknown users if you are using
167 # the "LookupSenderInExternalDatabase" option.
168 # Instead, an error message will be mailed and RT will forward the
169 # message to $RTOwner.
170 #
171 # If you are not using $LookupSenderInExternalDatabase, this option
172 # has no effect.
173 #
174 # If you define an AutoRejectRequest template, RT will use this
175 # template for the rejection message.
176
177 Set($SenderMustExistInExternalDatabase , undef);
178
179 # }}}
180
181 # {{{ Outgoing mail configuration
182
183 # RT is designed such that any mail which already has a ticket-id associated
184 # with it will get to the right place automatically.
185
186 # $CorrespondAddress and $CommentAddress are the default addresses
187 # that will be listed in From: and Reply-To: headers of correspondence
188 # and comment mail tracked by RT, unless overridden by a queue-specific
189 # address.
190
191 Set($CorrespondAddress , 'RT_CorrespondAddressNotSet');
192
193 Set($CommentAddress , 'RT_CommentAddressNotSet');
194
195 #Sendmail Configuration
196
197 # $MailCommand defines which method RT will use to try to send mail
198 # We know that 'sendmailpipe' works fairly well.
199 # If 'sendmailpipe' doesn't work well for you, try 'sendmail'
200 #
201 # Note that you should remove the '-t' from $SendmailArguments
202 # if you use 'sendmail' rather than 'sendmailpipe'
203
204 Set($MailCommand , 'sendmailpipe');
205
206 # $SendmailArguments defines what flags to pass to $Sendmail
207 # assuming you picked 'sendmail' or 'sendmailpipe' as the $MailCommand above.
208 # If you picked 'sendmailpipe', you MUST add a -t flag to $SendmailArguments
209
210 # These options are good for most sendmail wrappers and workalikes
211 Set($SendmailArguments , "-oi -t");
212
213 # $SendmailBounceArguments defines what flags to pass to $Sendmail
214 # assuming RT needs to send an error (ie. bounce).
215
216 Set($SendmailBounceArguments , '-f "<>"');
217
218 # These arguments are good for sendmail brand sendmail 8 and newer
219 #Set($SendmailArguments,"-oi -t -ODeliveryMode=b -OErrorMode=m");
220
221 # If you selected 'sendmailpipe' above, you MUST specify the path
222 # to your sendmail binary in $SendmailPath.
223 # !! If you did not # select 'sendmailpipe' above, this has no effect!!
224 Set($SendmailPath , "/usr/sbin/sendmail");
225
226 # By default, RT sets the outgoing mail's "From:" header to
227 # "SenderName via RT".  Setting this option to 0 disables it.
228
229 Set($UseFriendlyFromLine , 1);
230
231 # sprintf() format of the friendly 'From:' header; its arguments
232 # are SenderName and SenderEmailAddress.
233 Set($FriendlyFromLineFormat , "\"%s via RT\" <%s>");
234
235 # RT can optionally set a "Friendly" 'To:' header when sending messages to
236 # Ccs or AdminCcs (rather than having a blank 'To:' header.
237
238 # This feature DOES NOT WORK WITH SENDMAIL[tm] BRAND SENDMAIL
239 # If you are using sendmail, rather than postfix, qmail, exim or some other MTA,
240 # you _must_ disable this option.
241
242 Set($UseFriendlyToLine , 0);
243
244 # sprintf() format of the friendly 'From:' header; its arguments
245 # are WatcherType and TicketId.
246 Set($FriendlyToLineFormat, "\"%s of $RT::rtname Ticket #%s\":;");
247
248 # By default, RT doesn't notify the person who performs an update, as they
249 # already know what they've done. If you'd like to change this behaviour,
250 # Set $NotifyActor to 1
251
252 Set($NotifyActor, 0);
253
254 # By default, RT records each message it sends out to its own internal database.# To change this behaviour, set $RecordOutgoingEmail to 0 
255
256 Set($RecordOutgoingEmail, 1);
257
258 # }}}
259
260 # {{{ Logging
261
262 # Logging.  The default is to log anything except debugging
263 # information to syslog.  Check the Log::Dispatch POD for
264 # information about how to get things by syslog, mail or anything
265 # else, get debugging info in the log, etc.
266
267 #  It might generally make
268 # sense to send error and higher by email to some administrator.
269 # If you do this, be careful that this email isn't sent to this RT instance.
270
271 # the minimum level error that will be logged to the specific device.
272 # levels from lowest to highest:
273 #  debug info notice warning error critical alert emergency
274
275 #  Mail loops will generate a critical log message.
276 Set($LogToSyslog    , 'debug');
277 Set($LogToScreen    , 'error');
278 Set($LogToFile      , undef);
279 Set($LogDir, '@RT_LOG_PATH@');
280 Set($LogToFileNamed , "rt.log");    #log to rt.log
281
282 # On Solaris or UnixWare, set to ( socket => 'inet' ).  Options here
283 # override any other options RT passes to Log::Dispatch::Syslog.
284 # Other interesting flags include facility and logopt.  (See the
285 # Log::Dispatch::Syslog documentation for more information.)  (Maybe
286 # ident too, if you have multiple RT installations.)
287
288 @LogToSyslogConf = () unless (@LogToSyslogConf);
289
290 # }}}
291
292 # {{{ Web interface configuration
293
294 # Define the directory name to be used for images in rt web
295 # documents.
296
297 # If you're putting the web ui somewhere other than at the root of
298 # your server
299 # $WebPath requires a leading / but no trailing /
300
301 Set($WebPath , "");
302
303 # This is the Scheme, server and port for constructing urls to webrt
304 # $WebBaseURL doesn't need a trailing /
305
306 Set($WebBaseURL , "http://localhost");
307
308 Set($WebURL , $WebBaseURL . $WebPath . "/");
309
310 # $WebImagesURL points to the base URL where RT can find its images.
311
312 Set($WebImagesURL , $WebPath . "/NoAuth/images/");
313
314 # $LogoURL points to the URL of the RT logo displayed in the web UI
315
316 Set($LogoURL , $WebImagesURL . "bplogo.gif");
317
318 # WebNoAuthRegex - What portion of RT's URLspace should not require
319 # authentication.
320 Set($WebNoAuthRegex, qr!^(?:/+NoAuth/|
321                             /+REST/\d+\.\d+/NoAuth/)!x );
322
323 # For message boxes, set the entry box width and what type of wrapping
324 # to use.
325 #
326 # Default width: 72
327 Set($MessageBoxWidth , 72);
328
329 # Default wrapping: "HARD"  (choices "SOFT", "HARD")
330 Set($MessageBoxWrap, "HARD");
331
332 # if TrustHTMLAttachments is not defined, we will display them
333 # as text. This prevents malicious HTML and javascript from being
334 # sent in a request (although there is probably more to it than that)
335 Set($TrustHTMLAttachments , undef);
336
337 # Should RT redistribute correspondence that it identifies as
338 # machine generated? A true value (the default) will do so, setting
339 # this to '0' will cause no such messages to be redistributed.
340 # You can also use 'privileged', which will redistribute only to
341 # privileged users. This is seful if you get malformed bounces caused by
342 # autocreated requestors with bogus addresses.
343 Set($RedistributeAutoGeneratedMessages, 1);
344
345 # If PreferRichText is set to a true value, RT will show HTML/Rich text
346 # messages in preference to their plaintext alternatives. RT "scrubs" the 
347 # html to show only a minimal subset of HTML to avoid possible contamination
348 # by cross-site-scripting attacks.
349 Set($PreferRichText, undef);
350
351 # If $WebExternalAuth is defined, RT will defer to the environment's
352 # REMOTE_USER variable.
353
354 Set($WebExternalAuth , undef);
355
356 # If $WebFallbackToInternalAuth is undefined, the user is allowed a chance
357 # of fallback to the login screen, even if REMOTE_USER failed.
358
359 Set($WebFallbackToInternalAuth , undef);
360
361 # $WebExternalGecos means to match 'gecos' field as the user identity);
362 # useful with mod_auth_pwcheck and IIS Integrated Windows logon.
363
364 Set($WebExternalGecos , undef);
365
366 # $WebExternalAuto will create users under the same name as REMOTE_USER
367 # upon login, if it's missing in the Users table.
368
369 Set($WebExternalAuto , undef);
370
371 # $WebSessionClass is the class you wish to use for managing Sessions.
372 # It defaults to use your SQL database, but if you are using MySQL 3.x and
373 # plans to use non-ascii Queue names, uncomment and add this line to
374 # RT_SiteConfig.pm will prevent session corruption.
375
376 # Set($WebSessionClass , 'Apache::Session::File');
377
378 # By default, RT clears its database cache after every page view.
379 # This ensures that you've always got the most current information 
380 # when working in a multi-process (mod_perl or FastCGI) Environment
381 # Setting $WebFlushDbCacheEveryRequest to '0' will turn this off,
382 # which will speed RT up a bit, at the expense of a tiny bit of data 
383 # accuracy
384
385 Set($WebFlushDbCacheEveryRequest, '1');
386
387
388 # $MaxInlineBody is the maximum attachment size that we want to see
389 # inline when viewing a transaction. 13456 is a random sane-sounding
390 # default.
391
392 Set($MaxInlineBody, 13456);
393
394 # $MyTicketsLength is the length of the owned tickets table on the
395 # front page. For some people, the default of 10 isn't big enough
396 # to get a feel for how much work needs to be done before you get
397 # some time off.
398
399 Set($MyTicketsLength, 10);
400
401 # $MyRequestsLength is the length of the requested tickets table
402 # on the front page.
403
404 Set($MyRequestsLength, 10);
405
406 # @MasonParameters is the list of parameters for the constructor of
407 # HTML::Mason's Apache or CGI Handler.  This is normally only useful
408 # for debugging, eg. profiling individual components with:
409 #     use MasonX::Profiler; # available on CPAN
410 #     @MasonParameters = (preamble => 'my $p = MasonX::Profiler->new($m, $r);');
411
412 @MasonParameters = () unless (@MasonParameters);
413
414 # $DefaultSearchResultFormat is the default format for RT search results
415 Set ($DefaultSearchResultFormat, qq{
416    '<B><A HREF="$RT::WebPath/Ticket/Display.html?id=__id__">__id__</a></B>/TITLE:#',
417    '<B><A HREF="$RT::WebPath/Ticket/Display.html?id=__id__">__Subject__</a></B>/TITLE:Subject',
418    Status,
419    QueueName, 
420    OwnerName, 
421    Priority, 
422    '__NEWLINE__',
423    '', 
424    '<small>__Requestors__</small>',
425    '<small>__CreatedRelative__</small>',
426    '<small>__ToldRelative__</small>',
427    '<small>__LastUpdatedRelative__</small>',
428    '<small>__TimeLeft__</small>'});
429
430
431 # }}}
432
433 # {{{ RT UTF-8 Settings
434
435 # An array that contains languages supported by RT's internationalization
436 # interface.  Defaults to all *.po lexicons; setting it to qw(en ja) will make
437 # RT bilingual instead of multilingual, but will save some memory.
438
439 @LexiconLanguages = qw(*) unless (@LexiconLanguages);
440
441 # An array that contains default encodings used to guess which charset
442 # an attachment uses if not specified.  Must be recognized by
443 # Encode::Guess.
444
445 @EmailInputEncodings = qw(utf-8 iso-8859-1 us-ascii) unless (@EmailInputEncodings);
446
447 # The charset for localized email.  Must be recognized by Encode.
448
449 Set($EmailOutputEncoding , 'utf-8');
450
451 # }}}
452
453 # {{{ RT Date Handling Options (for Time::ParseDate)
454
455 # Set this to 1 if your local date convention looks like "dd/mm/yy"
456 # instead of "mm/dd/yy".
457
458 Set($DateDayBeforeMonth , 1);
459
460 # Should "Tuesday" default to meaning "Next Tuesday" or "Last Tuesday"?
461 # Set to 0 for "Next" or 1 for "Last".
462
463 Set($AmbiguousDayInPast , 1);
464
465 # }}}
466
467 # {{{ Miscellaneous RT Settings
468
469 # You can define new statuses and even reorder existing statuses here.
470 # WARNING. DO NOT DELETE ANY OF THE DEFAULT STATUSES. If you do, RT
471 # will break horribly.
472
473 @ActiveStatus = qw(new open stalled) unless @ActiveStatus;
474 @InactiveStatus = qw(resolved rejected deleted) unless @InactiveStatus;
475
476 # Backward compatability setting. Add/Delete Link used to record one
477 # transaction and run one scrip. Set this value to 0 if you want
478 # both link transactions to have a scrip run.
479 Set($LinkTransactionsRun1Scrip , 1);
480
481 # }}}
482
483
484 # {{{ Development Mode
485 #
486 # RT comes with a "Development mode" setting. 
487 # This setting, as a convenience for developers, turns on 
488 # all sorts of development options that you most likely don't want in 
489 # production:
490 #
491 # * Turns off Mason's 'static_source' directive. By default, you can't 
492 #   edit RT's web ui components on the fly and have RT magically pick up
493 #   your changes. (It's a big performance hit)
494 #
495 #  * More to come
496 #
497
498 Set($DevelMode, '@RT_DEVEL_MODE@');
499
500 # }}}
501
502
503 1;