import rt 3.8.8
[freeside.git] / rt / etc / RT_Config.pm.in
1
2 package RT;
3
4 =head1 NAME
5
6 RT::Config
7
8 =for testing
9
10 use RT::Config;
11
12 =cut
13
14 =head1 WARNING
15
16 NEVER EDIT RT_Config.pm.
17
18 Instead, copy any sections you want to change to F<RT_SiteConfig.pm> and edit them there.
19
20 =cut
21
22 =head1 Base Configuration
23
24 =over 4
25
26 =item C<$rtname>
27
28 C<$rtname> is the string that RT will look for in mail messages to
29 figure out what ticket a new piece of mail belongs to.
30
31 Your domain name is recommended, so as not to pollute the namespace.
32 once you start using a given tag, you should probably never change it.
33 (otherwise, mail for existing tickets won't get put in the right place)
34
35 =cut
36
37 Set($rtname , "example.com");
38
39
40 =item C<$EmailSubjectTagRegex>
41
42 This regexp controls what subject tags RT recognizes as its own.
43 If you're not dealing with historical C<$rtname> values, you'll likely
44 never have to enable this feature.
45
46 Be VERY CAREFUL with it. Note that it overrides C<$rtname> for subject
47 token matching and that you should use only "non-capturing" parenthesis
48 grouping. For example:
49
50 C<Set($EmailSubjectTagRegex, qr/(?:example.com|example.org)/i );>
51
52 and NOT
53
54 C<Set($EmailSubjectTagRegex, qr/(example.com|example.org)/i );>
55
56 This setting would make RT behave exactly as it does without the 
57 setting enabled.
58
59 =cut
60
61 #Set($EmailSubjectTagRegex, qr/\Q$rtname\E/i );
62
63
64
65 =item C<$Organization>
66
67 You should set this to your organization's DNS domain. For example,
68 I<fsck.com> or I<asylum.arkham.ma.us>. It's used by the linking interface to
69 guarantee that ticket URIs are unique and easy to construct.
70
71 =cut
72
73 Set($Organization , "example.com");
74
75 =item C<$MinimumPasswordLength>
76
77 C<$MinimumPasswordLength> defines the minimum length for user
78 passwords. Setting it to 0 disables this check.
79
80 =cut
81
82 Set($MinimumPasswordLength , "5");
83
84 =item C<$Timezone>
85
86 C<$Timezone> is used to convert times entered by users into GMT and back again
87 It should be set to a timezone recognized by your local unix box.
88
89 =cut
90
91 Set($Timezone , 'US/Eastern');
92
93 =back
94
95 =head1 Database Configuration
96
97 =over 4
98
99 =item C<$DatabaseType>
100
101 Database driver being used; case matters.
102
103 Valid types are "mysql", "Oracle" and "Pg"
104
105 =cut
106
107 Set($DatabaseType , '@DB_TYPE@');
108
109 =item C<$DatabaseHost>, C<$DatabaseRTHost>
110
111 The domain name of your database server.
112
113 If you're running mysql and it's on localhost,
114 leave it blank for enhanced performance
115
116 =cut
117
118 Set($DatabaseHost   , '@DB_HOST@');
119 Set($DatabaseRTHost , '@DB_RT_HOST@');
120
121 =item C<$DatabasePort>
122
123 The port that your database server is running on.  Ignored unless it's
124 a positive integer. It's usually safe to leave this blank
125
126 =cut
127
128 Set($DatabasePort , '@DB_PORT@');
129
130 =item C<$DatabaseUser>
131
132 The name of the database user (inside the database)
133
134 =cut
135
136 Set($DatabaseUser , '@DB_RT_USER@');
137
138 =item C<$DatabasePassword>
139
140 Password the C<$DatabaseUser> should use to access the database
141
142 =cut
143
144 Set($DatabasePassword , '@DB_RT_PASS@');
145
146 =item C<$DatabaseName>
147
148 The name of the RT's database on your database server. For Oracle
149 it's SID, DB objects are created in L<$DatabaseUser>'s schema.
150
151 =cut
152
153 Set($DatabaseName , '@DB_DATABASE@');
154
155 =item C<$DatabaseRequireSSL>
156
157 If you're using Postgres and have compiled in SSL support,
158 set C<$DatabaseRequireSSL> to 1 to turn on SSL communication
159
160 =cut
161
162 Set($DatabaseRequireSSL , undef);
163
164 =item C<$UseSQLForACLChecks>
165
166 In RT for ages ACL are checked after search what in some situtations
167 result in empty search pages and wrong count of tickets.
168
169 Set C<$UseSQLForACLChecks> to 1 to use SQL and get rid of these problems.
170
171 However, this option is beta. In some cases it result in performance
172 improvements, but some setups can not handle it.
173
174 =cut
175
176 Set($UseSQLForACLChecks, undef);
177
178 =item C<$TicketsItemMapSize>
179
180 In RT at display page of a ticket and there is the current search,
181 then links for first, next, previous and last ticket are shown in
182 the menu.
183
184 To build full map RT has to fetch full result set out of DB what can
185 eat lots of resourses. Using this option it's possible to limit number
186 of tickets fetched.
187
188 Set C<$TicketsItemMapSize> to number of tickets you want RT to look
189 at to build the map. If full result set is bigger than that number
190 then there would be no 'last' link in the menu.
191
192 Set this to zero to return back to old behaviour.
193
194 =cut
195
196 Set($TicketsItemMapSize, 1000);
197
198 =back
199
200 =head1 Incoming Mail Gateway Configuration
201
202 =over 4
203
204 =item C<$OwnerEmail>
205
206 C<$OwnerEmail> is the address of a human who manages RT. RT will send
207 errors generated by the mail gateway to this address.  This address
208 should _not_ be an address that's managed by your RT instance.
209
210 =cut
211
212 Set($OwnerEmail , 'root');
213
214 =item C<$LoopsToRTOwner>
215
216 If C<$LoopsToRTOwner> is defined, RT will send mail that it believes
217 might be a loop to C<$OwnerEmail>
218
219 =cut
220
221 Set($LoopsToRTOwner , 1);
222
223 =item C<$StoreLoops>
224
225 If C<$StoreLoops> is defined, RT will record messages that it believes
226 to be part of mail loops.
227
228 As it does this, it will try to be careful not to send mail to the
229 sender of these messages
230
231 =cut
232
233 Set($StoreLoops , undef);
234
235 =item C<$MaxAttachmentSize>
236
237 C<$MaxAttachmentSize> sets the maximum size (in bytes) of attachments stored
238 in the database.
239
240 For mysql and oracle, we set this size at 10 megabytes.
241 If you're running a postgres version earlier than 7.1, you will need
242 to drop this to 8192. (8k)
243
244 =cut
245
246
247 Set($MaxAttachmentSize , 10000000);
248
249 =item C<$TruncateLongAttachments>
250
251 C<$TruncateLongAttachments>: if this is set to a non-undef value,
252 RT will truncate attachments longer than C<$MaxAttachmentSize>.
253
254 =cut
255
256 Set($TruncateLongAttachments , undef);
257
258 =item C<$DropLongAttachments>
259
260 C<$DropLongAttachments>: if this is set to a non-undef value,
261 RT will silently drop attachments longer than C<MaxAttachmentSize>.
262
263 =cut
264
265 Set($DropLongAttachments , undef);
266
267 =item C<$ParseNewMessageForTicketCcs>
268
269 If C<$ParseNewMessageForTicketCcs> is true, RT will attempt to divine
270 Ticket 'Cc' watchers from the To and Cc lines of incoming messages
271 Be forewarned that if you have _any_ addresses which forward mail to
272 RT automatically and you enable this option without modifying
273 C<$RTAddressRegexp> below, you will get yourself into a heap of trouble.
274
275 =cut
276
277 Set($ParseNewMessageForTicketCcs , undef);
278
279 =item C<$RTAddressRegexp> 
280
281 C<$RTAddressRegexp> is used to make sure RT doesn't add itself as a ticket CC if
282 the setting above is enabled.  It is important that you set this to a 
283 regular expression that matches all addresses used by your RT.  This lets RT
284 avoid sending mail to itself.  It will also hide RT addresses from the list of 
285 "One-time Cc" and Bcc lists on ticket reply.
286
287 =cut
288
289 Set($RTAddressRegexp , undef);
290
291 =item C<$CanonicalizeEmailAddressMatch>, C<$CanonicalizeEmailAddressReplace>
292
293 RT provides functionality which allows the system to rewrite
294 incoming email addresses.  In its simplest form,
295 you can substitute the value in $<CanonicalizeEmailAddressReplace>
296 for the value in $<CanonicalizeEmailAddressMatch>
297 (These values are passed to the $<CanonicalizeEmailAddress> subroutine in
298  F<RT/User.pm>)
299
300 By default, that routine performs a C<s/$Match/$Replace/gi> on any address
301 passed to it.
302
303 =cut
304
305 #Set($CanonicalizeEmailAddressMatch , '@subdomain\.example\.com$');
306 #Set($CanonicalizeEmailAddressReplace , '@example.com');
307
308 =item C<$CanonicalizeEmailAddressMatch>
309
310 Set this to true and the create new user page will use the values that you
311 enter in the form but use the function CanonicalizeUserInfo in
312 F<RT/User_Local.pm>
313
314 =cut
315
316 Set($CanonicalizeOnCreate, 0);
317
318 =item C<$SenderMustExistInExternalDatabase>
319
320 If C<$SenderMustExistInExternalDatabase> is true, RT will refuse to
321 create non-privileged accounts for unknown users if you are using
322 the C<$LookupSenderInExternalDatabase> option.
323 Instead, an error message will be mailed and RT will forward the
324 message to C<$RTOwner>.
325
326 If you are not using C<$LookupSenderInExternalDatabase>, this option
327 has no effect.
328
329 If you define an AutoRejectRequest template, RT will use this
330 template for the rejection message.
331
332 =cut
333
334 Set($SenderMustExistInExternalDatabase , undef);
335
336 =item C<$ValidateUserEmailAddresses>
337
338 If C<$ValidateUserEmailAddresses> is true, RT will refuse to create users with
339 an invalid email address (as specified in RFC 2822) or with an email address
340 made of multiple email adresses.
341
342 =cut
343
344 Set($ValidateUserEmailAddresses, undef);
345
346 =item C<@MailPlugins>
347
348 C<@MailPlugins> is a list of auth plugins for L<RT::Interface::Email>
349 to use; see L<rt-mailgate>
350
351 =cut
352
353 =item C<$UnsafeEmailCommands>
354
355 C<$UnsafeEmailCommands>, if set to true, enables 'take' and 'resolve'
356 as possible actions via the mail gateway.  As its name implies, this
357 is very unsafe, as it allows email with a forged sender to possibly
358 resolve arbitrary tickets!
359
360 =cut
361
362 =item C<$ExtractSubjectTagMatch>, C<$ExtractSubjectTagNoMatch>
363
364 The default "extract remote tracking tags" scrip settings; these
365 detect when your RT is talking to another RT, and adjusts the
366 subject accordingly.
367
368 =cut
369
370 Set($ExtractSubjectTagMatch, qr/\[.+? #\d+\]/);
371 Set($ExtractSubjectTagNoMatch, ( ${RT::EmailSubjectTagRegex}
372        ? qr/\[(?:${RT::EmailSubjectTagRegex}) #\d+\]/
373        : qr/\[\Q$RT::rtname\E #\d+\]/));
374
375 =back
376
377 =head1 Outgoing Mail Configuration
378
379 =over 4
380
381 =item C<$MailCommand>
382
383 C<$MailCommand> defines which method RT will use to try to send mail.
384 We know that 'sendmailpipe' works fairly well.  If 'sendmailpipe'
385 doesn't work well for you, try 'sendmail'.  Other options are 'smtp'
386 or 'qmail'.
387
388 Note that you should remove the '-t' from C<$SendmailArguments>
389 if you use 'sendmail' rather than 'sendmailpipe'
390
391 =cut
392
393 Set($MailCommand , 'sendmailpipe');
394
395 =item C<$SetOutgoingMailFrom>
396
397 C<$SetOutgoingMailFrom> tells RT to set the sender envelope with the correspond
398 mail address of the ticket's queue.
399
400 Warning: If you use this setting, bounced mails will appear to be incoming
401 mail to the system, thus creating new tickets.
402
403 =cut
404
405 Set($SetOutgoingMailFrom, 0);
406
407 =item C<$OverrideOutgoingMailFrom>
408
409 C<$OverrideOutgoingMailFrom> is used for overwriting the Correspond
410 address of the queue. The option is a hash reference of queue name to
411 email address.
412
413 If there is no ticket involved, then the value of the C<Default> key will be
414 used.
415
416 =cut
417
418 Set($OverrideOutgoingMailFrom, {
419 #    'Default' => 'admin@rt.example.com',
420 #    'General' => 'general@rt.example.com',
421 });
422
423 =back
424
425 =item C<$DefaultMailPrecedence>
426
427 C<$DefaultMailPrecedence> is used to control the default
428 Precedence level of outgoing mail where none is specified.
429 By default it is C<bulk>, but if you only send mail to
430 your staff, you may wish to change it.
431
432 Note that you can set the precedence of individual templates
433 by including an explicit Precedence header.
434
435 If you set this value to C<undef> then we do not set a default
436 Precedence header to outgoing mail. However, if there already is a
437 Precedence header it will be preserved.
438
439 =cut
440
441 Set($DefaultMailPrecedence, 'bulk');
442
443 =back
444
445 =item C<$DefaultErrorMailPrecedence>
446
447 C<$DefaultErrorMailPrecedence> is used to control the default
448 Precedence level of outgoing mail that indicates some kind of
449 error condition. By default it is C<bulk>, but if you only send
450 mail to your staff, you may wish to change it.
451
452 If you set this value to C<undef> then we do not add a Precedence
453 header to error mail.
454
455 =cut
456
457 Set($DefaultErrorMailPrecedence, 'bulk');
458
459 =back
460
461 =item C<$UseOriginatorHeader>
462
463 C<$UseOriginatorHeader> is used to control the insertion of an
464 RT-Originator Header in every outgoing mail, containing the
465 mail address of the transaction creator.
466
467 =cut
468
469 Set($UseOriginatorHeader, 1);
470
471 =back
472
473 =head1 Sendmail Configuration
474
475 These options only take effect if C<$MailCommand> is 'sendmail' or
476 'sendmailpipe'
477
478 =over 4
479
480 =item C<$SendmailArguments> 
481
482 C<$SendmailArguments> defines what flags to pass to C<$SendmailPath>
483 If you picked 'sendmailpipe', you MUST add a -t flag to C<$SendmailArguments>
484 These options are good for most sendmail wrappers and workalikes
485
486 These arguments are good for sendmail brand sendmail 8 and newer
487 C<Set($SendmailArguments,"-oi -t -ODeliveryMode=b -OErrorMode=m");>
488
489 =cut
490
491 Set($SendmailArguments , "-oi -t");
492
493
494 =item C<$SendmailBounceArguments>
495
496 C<$SendmailBounceArguments> defines what flags to pass to C<$Sendmail>
497 assuming RT needs to send an error (ie. bounce).
498
499 =cut
500
501 Set($SendmailBounceArguments , '-f "<>"');
502
503 =item C<$SendmailPath>
504
505 If you selected 'sendmailpipe' above, you MUST specify the path to
506 your sendmail binary in C<$SendmailPath>.
507
508 =cut
509
510 Set($SendmailPath , "/usr/sbin/sendmail");
511
512
513 =back
514
515 =head1 SMTP Configuration
516
517 These options only take effect if C<$MailCommand> is 'smtp'
518
519 =over 4
520
521 =item C<$SMTPServer>
522
523 C<$SMTPServer> should be set to the hostname of the SMTP server to use
524
525 =cut
526
527 Set($SMTPServer, undef);
528
529 =item C<$SMTPFrom>
530
531 C<$SMTPFrom> should be set to the 'From' address to use, if not the
532 email's 'From'
533
534 =cut
535
536 Set($SMTPFrom, undef);
537
538 =item C<$SMTPDebug> 
539
540 C<$SMTPDebug> should be set to true to debug SMTP mail sending
541
542 =cut
543
544 Set($SMTPDebug, 0);
545
546 =back
547
548 =head1 Other Mailer Configuration
549
550 =over 4
551
552 =item C<@MailParams>
553
554 C<@MailParams> defines a list of options passed to $MailCommand if it
555 is not 'sendmailpipe', 'sendmail', or 'smtp'
556
557 =cut
558
559 Set(@MailParams, ());
560
561 =item C<$CorrespondAddress>, C<$CommentAddress>
562
563 RT is designed such that any mail which already has a ticket-id associated
564 with it will get to the right place automatically.
565
566 C<$CorrespondAddress> and C<$CommentAddress> are the default addresses
567 that will be listed in From: and Reply-To: headers of correspondence
568 and comment mail tracked by RT, unless overridden by a queue-specific
569 address.
570
571 =cut
572
573 Set($CorrespondAddress , '');
574
575 Set($CommentAddress , '');
576
577 =item C<$DashboardAddress>
578
579 The email address from which RT will send dashboards. If none is set, then
580 C<$OwnerEmail> will be used.
581
582 =cut
583
584 Set($DashboardAddress, '');
585
586 =item C<$UseFriendlyFromLine>
587
588 By default, RT sets the outgoing mail's "From:" header to
589 "SenderName via RT".  Setting C<$UseFriendlyFromLine> to 0 disables it.
590
591 =cut
592
593 Set($UseFriendlyFromLine, 1);
594
595 =item C<$FriendlyFromLineFormat>
596
597 C<sprintf()> format of the friendly 'From:' header; its arguments
598 are SenderName and SenderEmailAddress.
599
600 =cut
601
602 Set($FriendlyFromLineFormat, "\"%s via RT\" <%s>");
603
604 =item C<$UseFriendlyToLine>
605
606 RT can optionally set a "Friendly" 'To:' header when sending messages to
607 Ccs or AdminCcs (rather than having a blank 'To:' header.
608
609 This feature DOES NOT WORK WITH SENDMAIL[tm] BRAND SENDMAIL
610 If you are using sendmail, rather than postfix, qmail, exim or some other MTA,
611 you _must_ disable this option.
612
613 =cut
614
615 Set($UseFriendlyToLine, 0);
616
617 =item C<$FriendlyToLineFormat>
618
619 C<sprintf()> format of the friendly 'From:' header; its arguments
620 are WatcherType and TicketId.
621
622 =cut
623
624 Set($FriendlyToLineFormat, "\"%s of ". RT->Config->Get('rtname') ." Ticket #%s\":;");
625
626 =item C<$NotifyActor>
627
628 By default, RT doesn't notify the person who performs an update, as they
629 already know what they've done. If you'd like to change this behaviour,
630 Set C<$NotifyActor> to 1
631
632 =cut
633
634 Set($NotifyActor, 0);
635
636 =item C<$RecordOutgoingEmail>
637
638 By default, RT records each message it sends out to its own internal database.
639 To change this behavior, set C<$RecordOutgoingEmail> to 0 
640
641 =cut
642
643 Set($RecordOutgoingEmail, 1);
644
645 =item C<$VERPPrefix>, C<$VERPPrefix>
646
647 VERP support (http://cr.yp.to/proto/verp.txt)
648
649 uncomment the following two directives to generate envelope senders
650 of the form C<${VERPPrefix}${originaladdress}@${VERPDomain}>
651 (i.e. rt-jesse=fsck.com@rt.example.com ).
652
653 This currently only works with sendmail and sendmailppie.
654
655 =cut
656
657 # Set($VERPPrefix, 'rt-');
658 # Set($VERPDomain, $RT::Organization);
659
660
661 =item C<$ForwardFromUser>
662
663 By default, RT forwards a message using queue's address and adds RT's tag into
664 subject of the outgoing message, so recipients' replies go into RT as correspondents.
665
666 To change this behavior, set C<$ForwardFromUser> to true value and RT will use
667 address of the current user and leave subject without RT's tag.
668
669 =cut
670
671 Set($ForwardFromUser, 0);
672
673 =item C<$ShowBccHeader>
674
675 By default RT hides from the web UI information about blind copies user sent on
676 reply or comment.
677
678 To change this set the following option to true value.
679
680 =cut
681
682 Set($ShowBccHeader, 0);
683
684 =item C<$DashboardSubject>
685
686 Lets you set the subject of dashboards. Arguments are the frequency (Daily,
687 Weekly, Monthly) of the dashboard and the dashboard's name. [_1] for the name
688 of the dashboard.
689
690 =cut
691
692 Set($DashboardSubject, '%s Dashboard: %s');
693
694 =back
695
696 =head1 GnuPG Configuration
697
698 A full description of the (somewhat extensive) GnuPG integration can be found 
699 by running the command `perldoc L<RT::Crypt::GnuPG>`  (or `perldoc
700         lib/RT/Crypt/GnuPG.pm` from your RT install directory).
701
702 =over 4
703
704 =item C<%GnuPG>
705
706 Set C<OutgoingMessagesFormat> to 'inline' to use inline encryption and
707 signatures instead of 'RFC' (GPG/MIME: RFC3156 and RFC1847) format.
708
709 If you want to allow people to encrypt attachments inside the DB then
710 set C<AllowEncryptDataInDB> to true
711
712 Set C<RejectOnMissingPrivateKey> to false if you don't want to reject
713 emails encrypted for key RT doesn't have and can not decrypt.
714
715 Set C<RejectOnBadData> to false if you don't want to reject letters
716 with incorrect GnuPG data.
717
718 =cut
719
720 Set( %GnuPG,
721     Enable => @RT_GPG@,
722     OutgoingMessagesFormat => 'RFC', # Inline
723     AllowEncryptDataInDB   => 0,
724
725     RejectOnMissingPrivateKey => 1,
726     RejectOnBadData           => 1,
727 );
728
729 =item C<%GnuPGOptions>
730
731 Options of GnuPG program.
732
733 If you override this in your RT_SiteConfig, you should be sure
734 to include a homedir setting.
735
736 NOTE that options with '-' character MUST be quoted.
737
738 =cut
739
740 Set(%GnuPGOptions,
741     homedir => '@RT_VAR_PATH@/data/gpg',
742
743 # URL of a keyserver
744 #    keyserver => 'hkp://subkeys.pgp.net',
745
746 # enables the automatic retrieving of keys when encrypting
747 #    'auto-key-locate' => 'keyserver',
748
749 # enables the automatic retrieving of keys when verifying signatures
750 #    'auto-key-retrieve' => undef,
751 );
752
753
754 =back
755
756 =head1 Logging Configuration
757
758 The default is to log anything except debugging
759 information to syslog.  Check the L<Log::Dispatch> POD for
760 information about how to get things by syslog, mail or anything
761 else, get debugging info in the log, etc.
762
763 It might generally make sense to send error and higher by email to
764 some administrator.  If you do this, be careful that this email
765 isn't sent to this RT instance.  Mail loops will generate a critical
766 log message.
767
768 =over 4
769
770 =item C<$LogToSyslog>, C<$LogToScreen>
771
772 The minimum level error that will be logged to the specific device.
773 From lowest to highest priority, the levels are:
774  debug info notice warning error critical alert emergency
775
776 =cut
777
778 Set($LogToSyslog    , 'info');
779 Set($LogToScreen    , 'info');
780
781 =item C<$LogToFile>, C<$LogDir>, C<$LogToFileNamed>
782
783 Logging to a standalone file is also possible, but note that the
784 file should needs to both exist and be writable by all direct users
785 of the RT API.  This generally include the web server, whoever
786 rt-crontool runs as.  Note that as rt-mailgate and the RT CLI go
787 through the webserver, so their users do not need to have write
788 permissions to this file. If you expect to have multiple users of
789 the direct API, Best Practical recommends using syslog instead of
790 direct file logging.
791
792 =cut
793
794 Set($LogToFile      , undef);
795 Set($LogDir, '@RT_LOG_PATH@');
796 Set($LogToFileNamed , "rt.log");    #log to rt.log
797
798 =item C<$LogStackTraces>
799
800 If set to a log level then logging will include stack traces for
801 messages with level equal to or greater than specified.
802
803 NOTICE: Stack traces include parameters supplied to functions or
804 methods. It is possible for stack trace logging to reveal sensitive
805 information such as passwords or ticket content in your logs.
806
807 =cut
808
809 Set($LogStackTraces, '');
810
811 =item C<@LogToSyslogConf>
812
813 On Solaris or UnixWare, set to ( socket => 'inet' ).  Options here
814 override any other options RT passes to L<Log::Dispatch::Syslog>.
815 Other interesting flags include facility and logopt.  (See the
816 L<Log::Dispatch::Syslog> documentation for more information.)  (Maybe
817 ident too, if you have multiple RT installations.)
818
819 =cut
820
821 Set(@LogToSyslogConf, ());
822
823 =item C<$StatementLog>,
824
825 RT has rudimentary SQL statement logging support if you have
826 DBIx-SearchBuilder 1.31_1 or higher; simply set C<$StatementLog> to be
827 the level that you wish SQL statements to be logged at.
828
829 =cut
830
831 Set($StatementLog, undef);
832
833 =back
834
835 =head1 Web Interface Configuration
836
837 =over 4
838
839 =item C<$WebDefaultStylesheet>
840
841 This determines the default stylesheet the RT web interface will use.
842 RT ships with several themes by default:
843
844   web2            The totally new, default layout for RT 3.8
845   3.5-default     RT 3.5 and 3.6 original layout
846   3.4-compat      A 3.4 compatibility stylesheet to make RT look
847                   (mostly) like 3.4
848
849 This value actually specifies a directory in F<share/html/NoAuth/css/>
850 from which RT will try to load the file main.css (which should
851 @import any other files the stylesheet needs).  This allows you to
852 easily and cleanly create your own stylesheets to apply to RT.  This
853 option can be overridden by users in their preferences.
854
855 =cut
856
857 Set($WebDefaultStylesheet, 'web2');
858
859 =item C<$UsernameFormat>
860
861 This determines how user info is displayed. 'concise' will show one of 
862 either NickName, RealName, Name or EmailAddress, depending on what exists 
863 and whether the user is privileged or not. 'verbose' will show RealName and
864 EmailAddress.
865
866 =cut
867
868 Set($UsernameFormat, 'concise');
869
870 =item C<$WebDomain>
871
872 Domain name of the RT server, eg 'www.example.com'. It should not contain
873 anything else, but server name.
874
875 =cut
876
877 Set( $WebDomain, 'localhost' );
878
879 =item C<$WebPort>
880
881 If we're running as a superuser, run on port 80
882 Otherwise, pick a high port for this user.
883
884 443 is default port for https protocol.
885
886 =cut
887
888 Set($WebPort, 80);# + ($< * 7274) % 32766 + ($< && 1024));
889
890 =item C<$WebPath>
891
892 If you're putting the web ui somewhere other than at the root of
893 your server, you should set C<$WebPath> to the path you'll be 
894 serving RT at.
895
896 C<$WebPath> requires a leading / but no trailing /, or it can be blank.
897
898 In most cases, you should leave C<$WebPath> set to '' (an empty value).
899
900 =cut
901
902 Set($WebPath, "");
903
904 =item C<$WebBaseURL>, C<$WebURL>
905
906 Usually you don't want to set these options. The only obviouse reason is
907 RT accessible via https protocol on non standard port, eg
908 'https://rt.example.com:9999'. In all other cases these options are computed
909 using C<$WebDomain>, C<$WebPort> and C<$WebPath>.
910
911 C<$WebBaseURL> is the scheme, server and port (eg 'http://rt.example.com')
912 for constructing urls to the web UI. C<$WebBaseURL> doesn't need a trailing /.
913
914 C<$WebURL> is the C<$WebBaseURL>, C<$WebPath> and trailing /, for example:
915 'http://www.example.com/rt/'.
916
917 =cut
918
919 my $port = RT->Config->Get('WebPort');
920 Set($WebBaseURL,
921     ($port == 443? 'https': 'http') .'://'
922     . RT->Config->Get('WebDomain')
923     . ($port != 80 && $port != 443? ":$port" : '')
924 );
925
926 Set($WebURL, RT->Config->Get('WebBaseURL') . RT->Config->Get('WebPath') . "/");
927
928 =item C<$WebImagesURL>
929
930 C<$WebImagesURL> points to the base URL where RT can find its images.
931 Define the directory name to be used for images in rt web
932 documents.
933
934 =cut
935
936 Set($WebImagesURL, RT->Config->Get('WebPath') . "/NoAuth/images/");
937
938 =item C<$LogoURL>
939
940 C<$LogoURL> points to the URL of the RT logo displayed in the web UI
941
942 =cut
943
944 Set($LogoURL, RT->Config->Get('WebImagesURL') . "bplogo.gif");
945
946 =item C<$LogoLinkURL>
947
948 C<$LogoLinkURL> is the URL that the RT logo hyperlinks to.
949
950 =cut
951
952 Set($LogoLinkURL, "http://bestpractical.com");
953
954 =item C<$LogoAltText>
955
956 C<$LogoAltText> is a string of text for the alt-text of the logo. It
957 will be passed through C<loc> for localization.
958
959 =cut
960
961 Set($LogoAltText, "Best Practical Solutions, LLC corporate logo");
962
963 =item C<$LogoImageHeight>
964
965 C<$LogoImageHeight> is the value of the C<height> attribute of the logo
966 C<img> tag.
967
968 =cut
969
970 Set($LogoImageHeight, 33);
971
972 =item C<$LogoImageWidth>
973
974 C<$LogoImageWidth> is the value of the C<width> attribute of the logo
975 C<img> tag.
976
977 =cut
978
979 Set($LogoImageWidth, 177);
980
981 =item C<$WebNoAuthRegex>
982
983 What portion of RT's URL space should not require authentication.
984
985 This is mostly for extension and doesn't mean RT will work without
986 login if you change it.
987
988 =cut
989
990 Set($WebNoAuthRegex, qr{^ (?:/+NoAuth/ | /+REST/\d+\.\d+/NoAuth/) }x );
991
992 =item C<$SelfServiceRegex>
993
994 What portion of RT's URLspace should be accessible to Unprivileged users
995 This does not override the redirect from F</Ticket/Display.html> to
996 F</SelfService/Display.html> when Unprivileged users attempt to access
997 ticked displays
998
999 =cut
1000
1001 Set($SelfServiceRegex, qr!^(?:/+SelfService/)!x );
1002
1003 =item C<$MessageBoxWidth>, C<$MessageBoxHeight>
1004
1005 For message boxes, set the entry box width, height and what type of
1006 wrapping to use.  These options can be overridden by users in their
1007 preferences.
1008
1009 Default width: 72, height: 15
1010
1011 These settings only apply to the non-RichText message box.
1012 See below for Rich Text settings.
1013
1014 =cut
1015
1016 Set($MessageBoxWidth, 72);
1017 Set($MessageBoxHeight, 15);
1018
1019 =item C<$MessageBoxWrap>
1020
1021 Default wrapping: "HARD"  (choices "SOFT", "HARD")
1022
1023 Wrapping is disabled when using MessageBoxRichText because
1024 of a bad interaction between IE and wrapping with the Rich
1025 Text Editor.
1026
1027 =cut
1028
1029 Set($MessageBoxWrap, "HARD");
1030
1031 =item C<$MessageBoxRichText>
1032
1033 Should "rich text" editing be enabled? This option lets your users send html email messages from the web interface.
1034
1035 =cut
1036
1037 Set($MessageBoxRichText, 1);
1038
1039 =item C<$MessageBoxRichTextHeight>
1040
1041 Height of RichText javascript enabled editing boxes (in pixels)
1042
1043 =cut
1044
1045 Set($MessageBoxRichTextHeight, 200);
1046
1047 =item C<$MessageBoxIncludeSignature>
1048
1049 Should your user's signatures (from their Preferences page) be included in Comments and Replies
1050
1051 =cut
1052
1053 Set($MessageBoxIncludeSignature, 1);
1054
1055 =item C<$MessageBoxIncludeSignatureOnComment>
1056
1057 Should your user's signatures (from their Preferences page) be included in Comments. Setting this to false overrides C<$MessageBoxIncludeSignature>.
1058
1059 =cut
1060
1061 Set($MessageBoxIncludeSignatureOnComment, 1);
1062
1063 =item C<$WikiImplicitLinks>
1064
1065 Support implicit links in WikiText custom fields?  A true value
1066 causes InterCapped or ALLCAPS words in WikiText fields to
1067 automatically become links to searches for those words.  If used on
1068 RTFM articles, it links to the RTFM article with that name.
1069
1070 =cut
1071
1072 Set($WikiImplicitLinks, 0);
1073
1074 =item C<$TrustHTMLAttachments>
1075
1076 if C<TrustHTMLAttachments> is not defined, we will display them
1077 as text. This prevents malicious HTML and javascript from being
1078 sent in a request (although there is probably more to it than that)
1079
1080 =cut
1081
1082 Set($TrustHTMLAttachments, undef);
1083
1084 =item C<$AlwaysDownloadAttachments>
1085
1086 Always download attachments, regardless of content type. If set,
1087 this overrides C<TrustHTMLAttachments>.
1088
1089 =cut
1090
1091 Set($AlwaysDownloadAttachments, undef);
1092
1093 =item C<$AttachmentUnits>
1094
1095 Controls the units (kilobytes or bytes) that attachment sizes use
1096 for display. The default is to display kilobytes if the attachment
1097 is larger than 1024 bytes, bytes otherwise. If you set
1098 C<$AttachmentUnits> to C<'k'> then attachment sizes will always be
1099 displayed in kilobytes. If set to C<'b'>, then sizes will be bytes.
1100
1101 =cut
1102
1103 Set($AttachmentUnits, undef);
1104
1105 =item C<$RedistributeAutoGeneratedMessages>
1106
1107 Should RT redistribute correspondence that it identifies as
1108 machine generated? A true value will do so; setting this to '0'
1109 will cause no such messages to be redistributed.
1110 You can also use 'privileged' (the default), which will redistribute
1111 only to privileged users. This helps to protect against malformed
1112 bounces and loops caused by autocreated requestors with bogus addresses.
1113
1114 =cut
1115
1116 Set($RedistributeAutoGeneratedMessages, 'privileged');
1117
1118 =item C<$PreferRichText>
1119
1120 If C<$PreferRichText> is set to a true value, RT will show HTML/Rich text
1121 messages in preference to their plaintext alternatives. RT "scrubs" the 
1122 html to show only a minimal subset of HTML to avoid possible contamination
1123 by cross-site-scripting attacks.
1124
1125 =cut
1126
1127 Set($PreferRichText, undef);
1128
1129 =item C<$WebExternalAuth>
1130
1131 If C<$WebExternalAuth> is defined, RT will defer to the environment's
1132 REMOTE_USER variable.
1133
1134 =cut
1135
1136 Set($WebExternalAuth, undef);
1137
1138 =item C<$WebExternalAuthContinuous>
1139
1140 If C<$WebExternalAuthContinuous> is defined, RT will check for the
1141 REMOTE_USER on each access.  If you would prefer this to only happen
1142 once (at initial login) set this to a false value.  The default setting
1143 will help ensure that if your external auth system deauthenticates a
1144 user, RT notices as soon as possible.
1145
1146 =cut
1147
1148 Set($WebExternalAuthContinuous, 1);
1149
1150 =item C<$WebFallbackToInternalAuth>
1151
1152 If C<$WebFallbackToInternalAuth> is defined, the user is allowed a chance
1153 of fallback to the login screen, even if REMOTE_USER failed.
1154
1155 =cut
1156
1157 Set($WebFallbackToInternalAuth , undef);
1158
1159 =item C<$WebExternalGecos>
1160
1161 C<$WebExternalGecos> means to match 'gecos' field as the user identity);
1162 useful with mod_auth_pwcheck and IIS Integrated Windows logon.
1163
1164 =cut
1165
1166 Set($WebExternalGecos , undef);
1167
1168 =item C<$WebExternalAuto>
1169
1170 C<$WebExternalAuto> will create users under the same name as REMOTE_USER
1171 upon login, if it's missing in the Users table.
1172
1173 =cut
1174
1175 Set($WebExternalAuto , undef);
1176
1177 =item C<$AutoCreate>
1178
1179 If C<$WebExternalAuto> is true, C<$AutoCreate> will be passed to User's
1180 Create method.  Use it to set defaults, such as creating 
1181 Unprivileged users with C<{ Privileged => 0 }>
1182 ( Must be a hashref of arguments )
1183
1184 =cut
1185
1186 Set($AutoCreate, undef);
1187
1188 =item C<$WebSessionClass>
1189
1190 C<$WebSessionClass> is the class you wish to use for managing Sessions.
1191 It defaults to use your SQL database, but if you are using MySQL 3.x and
1192 plans to use non-ascii Queue names, uncomment and add this line to
1193 F<RT_SiteConfig.pm> will prevent session corruption.
1194
1195 =cut
1196
1197 # Set($WebSessionClass , 'Apache::Session::File');
1198
1199 =item C<$AutoLogoff>
1200
1201 By default, RT's user sessions persist until a user closes his or her 
1202 browser. With the C<$AutoLogoff> option you can setup session lifetime in 
1203 minutes. A user will be logged out if he or she doesn't send any requests 
1204 to RT for the defined time.
1205
1206 =cut
1207
1208 Set($AutoLogoff, 0);
1209
1210 =item C<$LogoutRefresh>
1211
1212 The number of seconds to wait after logout before sending the user to the
1213 login page. By default, 1 second, though you may want to increase this if
1214 you display additional information on the logout page.
1215
1216 =cut
1217
1218 Set($LogoutRefresh, 1);
1219
1220 =item C<$WebSecureCookies>
1221
1222 By default, RT's session cookie isn't marked as "secure" Some web browsers 
1223 will treat secure cookies more carefully than non-secure ones, being careful
1224 not to write them to disk, only send them over an SSL secured connection 
1225 and so on. To enable this behaviour, set C<$WebSecureCookies> to a true value. 
1226 NOTE: You probably don't want to turn this on _unless_ users are only connecting
1227 via SSL encrypted HTTP connections.
1228
1229 =cut
1230
1231 Set($WebSecureCookies, 0);
1232
1233 =item C<$WebFlushDbCacheEveryRequest>
1234
1235 By default, RT clears its database cache after every page view.
1236 This ensures that you've always got the most current information 
1237 when working in a multi-process (mod_perl or FastCGI) Environment
1238 Setting C<$WebFlushDbCacheEveryRequest> to '0' will turn this off,
1239 which will speed RT up a bit, at the expense of a tiny bit of data 
1240 accuracy.
1241
1242 =cut
1243
1244 Set($WebFlushDbCacheEveryRequest, '1');
1245
1246
1247 =item C<$MaxInlineBody>
1248
1249 C<$MaxInlineBody> is the maximum attachment size that we want to see
1250 inline when viewing a transaction.  RT will inline any text if value
1251 is undefined or 0.  This option can be overridden by users in their
1252 preferences.
1253
1254 =cut
1255
1256 Set($MaxInlineBody, 12000);
1257
1258 =item C<$DefaultSummaryRows>
1259
1260 C<$DefaultSummaryRows> is default number of rows displayed in for search
1261 results on the frontpage.
1262
1263 =cut
1264
1265 Set($DefaultSummaryRows, 10);
1266
1267 =item C<$HomePageRefreshInterval>
1268
1269 C<$HomePageRefreshInterval> is default number of seconds to refresh the RT
1270 home page. Choose from [0, 120, 300, 600, 1200, 3600, 7200].
1271
1272 =cut
1273
1274 Set($HomePageRefreshInterval, 0);
1275
1276 =item C<$SearchResultsRefreshInterval>
1277
1278 C<$SearchResultsRefreshInterval> is default number of seconds to refresh
1279 search results in RT. Choose from [0, 120, 300, 600, 1200, 3600, 7200].
1280
1281 =cut
1282
1283 Set($SearchResultsRefreshInterval, 0);
1284
1285 =item C<$OldestTransactionsFirst>
1286
1287 By default, RT shows newest transactions at the bottom of the ticket
1288 history page, if you want see them at the top set this to '0'.  This
1289 option can be overridden by users in their preferences.
1290
1291 =cut
1292
1293 Set($OldestTransactionsFirst, '1');
1294
1295 =item C<$ShowTransactionImages>
1296
1297 By default, RT shows images attached to incoming (and outgoing) ticket updates
1298 inline. Set this variable to 0 if you'd like to disable that behaviour
1299
1300 =cut
1301
1302 Set($ShowTransactionImages, 1);
1303
1304 =item C<$PlainTextPre>
1305
1306 Normally plaintext attachments are displayed as HTML with line
1307 breaks preserved.  This causes space- and tab-based formatting not
1308 to be displayed correctly.  By setting $PlainTextPre they'll be
1309 displayed using <pre> instead so such formatting works, but they'll
1310 use a monospaced font, no matter what the value of C<$PlainTextMono> is.
1311
1312 =cut
1313
1314 Set($PlainTextPre, 0);
1315
1316
1317 =item C<$PlainTextMono> 
1318 To display plaintext attachments,
1319 Set C<$PlainTextMono> to 1 to use monospaced font and preserve
1320 formatting, but unlike PlainTextPre, the text will wrap to fit into the
1321 UI.
1322
1323 =cut
1324
1325 Set($PlainTextMono, 0);
1326
1327 =item C<$ShowUnreadMessageNotifications>
1328
1329 By default, RT will prompt users when there are new, unread messages on
1330 tickets they are viewing.
1331
1332 Set C<$ShowUnreadMessageNotifications> to a false value to disable this feature.
1333
1334 =cut
1335
1336 Set($ShowUnreadMessageNotifications, 1);
1337
1338
1339 =item C<$HomepageComponents>
1340
1341 C<$HomepageComponents> is an arrayref of allowed components on a user's
1342 customized homepage ("RT at a glance").
1343
1344 =cut
1345
1346 Set($HomepageComponents, [qw(QuickCreate Quicksearch MyAdminQueues MySupportQueues MyReminders RefreshHomepage Dashboards)]);
1347
1348 =item C<@MasonParameters>
1349
1350 C<@MasonParameters> is the list of parameters for the constructor of
1351 HTML::Mason's Apache or CGI Handler.  This is normally only useful
1352 for debugging, eg. profiling individual components with:
1353
1354     use MasonX::Profiler; # available on CPAN
1355     Set(@MasonParameters, (preamble => 'my $p = MasonX::Profiler->new($m, $r);'));
1356
1357 =cut
1358
1359 Set(@MasonParameters, ());
1360
1361 =item C<$DefaultSearchResultFormat>
1362
1363 C<$DefaultSearchResultFormat> is the default format for RT search results
1364
1365 =cut
1366
1367 Set ($DefaultSearchResultFormat, qq{
1368    '<B><A HREF="__WebPath__/Ticket/Display.html?id=__id__">__id__</a></B>/TITLE:#',
1369    '<B><A HREF="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a></B>/TITLE:Subject',
1370    Status,
1371    QueueName, 
1372    OwnerName, 
1373    Priority, 
1374    '__NEWLINE__',
1375    '', 
1376    '<small>__Requestors__</small>',
1377    '<small>__CreatedRelative__</small>',
1378    '<small>__ToldRelative__</small>',
1379    '<small>__LastUpdatedRelative__</small>',
1380    '<small>__TimeLeft__</small>'});
1381
1382 =item C<$DefaultSelfServiceSearchResultFormat>
1383
1384 C<$DefaultSelfServiceSearchResultFormat> is the default format of searches displayed in the 
1385 SelfService interface.
1386
1387 =cut
1388
1389 Set($DefaultSelfServiceSearchResultFormat, qq{
1390    '<B><A HREF="__WebPath__/SelfService/Display.html?id=__id__">__id__</a></B>/TITLE:#',
1391    '<B><A HREF="__WebPath__/SelfService/Display.html?id=__id__">__Subject__</a></B>/TITLE:Subject',
1392    Status,
1393    Requestors,
1394    OwnerName});
1395
1396 =item C<%AdminSearchResultFormat>
1397
1398 In admin interface format strings similar to tickets search result
1399 formats are used. Use C<%AdminSearchResultFormat> to define format
1400 strings per RT class.
1401
1402 =cut
1403
1404 Set(%AdminSearchResultFormat,
1405     Queues =>
1406         q{'<a href="__WebPath__/Admin/Queues/Modify.html?id=__id__">__id__</a>/TITLE:#'}
1407         .q{,'<a href="__WebPath__/Admin/Queues/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
1408         .q{,__Description__,__Address__,__Priority__,__DefaultDueIn__,__Disabled__},
1409
1410     Groups =>
1411         q{'<a href="__WebPath__/Admin/Groups/Modify.html?id=__id__">__id__</a>/TITLE:#'}
1412         .q{,'<a href="__WebPath__/Admin/Groups/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
1413         .q{,'__Description__'},
1414
1415     Users =>
1416         q{'<a href="__WebPath__/Admin/Users/Modify.html?id=__id__">__id__</a>/TITLE:#'}
1417         .q{,'<a href="__WebPath__/Admin/Users/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
1418         .q{,__RealName__, __EmailAddress__},
1419
1420     CustomFields =>
1421         q{'<a href="__WebPath__/Admin/CustomFields/Modify.html?id=__id__">__id__</a>/TITLE:#'}
1422         .q{,'<a href="__WebPath__/Admin/CustomFields/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
1423         .q{,__AppliedTo__, __FriendlyType__, __FriendlyPattern__},
1424
1425     Scrips => 
1426         q{'<a href="__WebPath__/__WebRequestPathDir__/Scrip.html?id=__id__&Queue=__QueueId__">__id__</a>/TITLE:#'}
1427         .q{,'<a href="__WebPath__/__WebRequestPathDir__/Scrip.html?id=__id__&Queue=__QueueId__">__Description__</a>/TITLE:Description'}
1428         .q{,__Stage__, __Condition__, __Action__, __Template__},
1429
1430     Templates =>
1431         q{'<a href="__WebPath__/__WebRequestPathDir__/Template.html?Queue=__QueueId__&Template=__id__">__id__</a>/TITLE:#'}
1432         .q{,'<a href="__WebPath__/__WebRequestPathDir__/Template.html?Queue=__QueueId__&Template=__id__">__Name__</a>/TITLE:Name'}
1433         .q{,'__Description__'},
1434 );
1435
1436 =item C<$SuppressInlineTextFiles>
1437
1438 If C<$SuppressInlineTextFiles> is set to a true value, then uploaded
1439 text files (text-type attachments with file names) are prevented
1440 from being displayed in-line when viewing a ticket's history.
1441
1442 =cut
1443
1444 Set($SuppressInlineTextFiles, undef);
1445
1446 =item C<$DontSearchFileAttachments>
1447
1448 If C<$DontSearchFileAttachments> is set to a true value, then uploaded
1449 files (attachments with file names) are not searched during full-content
1450 ticket searches.
1451
1452 =cut
1453
1454 Set($DontSearchFileAttachments, undef);
1455
1456 =item C<%ChartFont>
1457
1458 The L<GD> module (which RT uses for graphs) ships with a builtin font 
1459 that doesn't have full Unicode support. You can use a given TrueType font 
1460 for a specific language by setting %ChartFont to (language =E<gt> the 
1461 absolute path of a font) pairs. Your GD library must have support for
1462 TrueType fonts to use this option. If there is no entry for a language 
1463 in the hash then font with 'others' key is used.
1464
1465 RT comes with two TrueType fonts covering most available languages.
1466
1467 =cut
1468
1469 Set(
1470     %ChartFont,
1471     'zh-cn'  => "$RT::BasePath/share/fonts/DroidSansFallback.ttf",
1472     'zh-tw'  => "$RT::BasePath/share/fonts/DroidSansFallback.ttf",
1473     'ja'     => "$RT::BasePath/share/fonts/DroidSansFallback.ttf",
1474     'others' => "$RT::BasePath/share/fonts/DroidSans.ttf",
1475 );
1476
1477 =item C<$ChartsTimezonesInDB>
1478
1479 Dates are stored using UTC timezone in the DB, so charts groupped
1480 by dates and time are not representative. Set C<$ChartsTimezonesInDB>
1481 to a true value to enable timezones conversions using DB's
1482 capabilities. You may need to do some work on DB side to use this
1483 feature, read more in F<docs/timezones_in_charts.pod>.
1484
1485 =cut
1486
1487 Set( $ChartsTimezonesInDB, 0 );
1488
1489 =item C<@Active_MakeClicky>
1490
1491 MakeClicky detects various formats of data in headers and email
1492 messages, and extends them with supporting links.  By default, RT
1493 provides two formats:
1494
1495 * 'httpurl': detects http:// and https:// URLs and adds '[Open URL]'
1496   link after the URL.
1497
1498 * 'httpurl_overwrite': also detects URLs as 'httpurl' format, but
1499   replace URL with link and *adds spaces* into text if it's longer
1500   then 30 chars. This allow browser to wrap long URLs and avoid
1501   horizontal scrolling.
1502
1503 See F<share/html/Elements/MakeClicky> for documentation on how to add your own.
1504
1505 =cut
1506
1507 Set(@Active_MakeClicky, qw());
1508
1509 =item C<$DefaultQueue>
1510
1511 Use this to select the default queue name that will be used for creating new
1512 tickets. You may use either the queue's name or its ID. This only affects the
1513 queue selection boxes on the web interface.
1514
1515 =cut
1516
1517 #Set($DefaultQueue, 'General');
1518
1519 =item C<$DefaultTimeUnitsToHours>
1520
1521 Use this to set the default units for time entry to hours instead of minutes.
1522
1523 =cut
1524
1525 Set($DefaultTimeUnitsToHours, 0);
1526
1527 =back
1528
1529 =head1 L<Net::Server> (rt-server) Configuration
1530
1531 =over 4
1532
1533 =item C<$StandaloneMinServers>, C<$StandaloneMaxServers>
1534
1535 The absolute minimum and maximum number of servers that will be created to
1536 handle requests. Having multiple servers means that serving a slow page will
1537 affect other users less.
1538
1539 =cut
1540
1541 Set($StandaloneMinServers, 1);
1542 Set($StandaloneMaxServers, 1);
1543
1544 =item C<$StandaloneMinSpareServers>, C<$StandaloneMaxSpareServers>
1545
1546 These next two options can be used to scale up and down the number of servers
1547 to adjust to load. These two options will respect the C<$StandaloneMinServers
1548 > and C<$StandaloneMaxServers options>.
1549
1550 =cut
1551
1552 Set($StandaloneMinSpareServers, 0);
1553 Set($StandaloneMaxSpareServers, 0);
1554
1555 =item C<$StandaloneMaxRequests>
1556
1557 This sets the absolute maximum number of requests a single server will serve.
1558 Setting this would be useful if, for example, memory usage slowly crawls up
1559 every hit.
1560
1561 =cut
1562
1563 #Set($StandaloneMaxRequests, 50);
1564
1565 =item C<%NetServerOptions>
1566
1567 C<%NetServerOptions> is a hash of additional options to use for
1568 L<Net::Server/DEFAULT ARGUMENTS>. For example, you could set
1569 reverse_lookups to get the hostnames for all users with:
1570
1571 C<Set(%NetServerOptions, (reverse_lookups => 1));>
1572
1573 =cut
1574
1575 Set(%NetServerOptions, ());
1576
1577 =back
1578
1579
1580 =head1 UTF-8 Configuration
1581
1582 =over 4
1583
1584 =item C<@LexiconLanguages>
1585
1586 An array that contains languages supported by RT's internationalization
1587 interface.  Defaults to all *.po lexicons; setting it to C<qw(en ja)> will make
1588 RT bilingual instead of multilingual, but will save some memory.
1589
1590 =cut
1591
1592 Set(@LexiconLanguages, qw(*));
1593
1594 =item C<@EmailInputEncodings>
1595
1596 An array that contains default encodings used to guess which charset
1597 an attachment uses if not specified.  Must be recognized by
1598 L<Encode::Guess>.
1599
1600 =cut
1601
1602 Set(@EmailInputEncodings, qw(utf-8 iso-8859-1 us-ascii));
1603
1604 =item C<$EmailOutputEncoding>
1605
1606 The charset for localized email.  Must be recognized by Encode.
1607
1608 =cut
1609
1610 Set($EmailOutputEncoding, 'utf-8');
1611
1612
1613 =back
1614
1615 =head1 Date Handling Configuration
1616
1617 =over 4
1618
1619 =item C<$DateTimeFormat>
1620
1621 You can choose date and time format.  See "Output formatters"
1622 section in perldoc F<lib/RT/Date.pm> for more options.  This option can
1623 be overridden by users in their preferences.
1624 Some examples:
1625
1626 C<Set($DateTimeFormat, 'LocalizedDateTime');>
1627 C<Set($DateTimeFormat, { Format => 'ISO', Seconds => 0 });>
1628 C<Set($DateTimeFormat, 'RFC2822');>
1629 C<Set($DateTimeFormat, { Format => 'RFC2822', Seconds => 0, DayOfWeek => 0 });>
1630
1631 =cut
1632
1633 Set($DateTimeFormat, 'DefaultFormat');
1634
1635 # Next two options are for Time::ParseDate
1636
1637 =item C<$DateDayBeforeMonth>
1638
1639 Set this to 1 if your local date convention looks like "dd/mm/yy" instead of
1640 "mm/dd/yy". Used only for parsing, not for displaying dates.
1641
1642 =cut
1643
1644 Set($DateDayBeforeMonth , 1);
1645
1646 =item C<$AmbiguousDayInPast>, C<$AmbiguousDayInFuture>
1647
1648 Should an unspecified day or year in a date refer to a future or a
1649 past value? For example, should a date of "Tuesday" default to mean
1650 the date for next Tuesday or last Tuesday? Should the date "March 1"
1651 default to the date for next March or last March?
1652
1653 Set $<AmbiguousDayInPast> for the last date, or $<$AmbiguousDayInFuture> for the
1654 next date.
1655
1656 The default is usually good.
1657
1658 =cut
1659
1660 Set($AmbiguousDayInPast, 0);
1661 Set($AmbiguousDayInFuture, 0);
1662
1663 =back
1664
1665 =head1 Approval Configuration
1666
1667 Configration for the approvl system
1668
1669 =over 4
1670
1671 =item C<$ApprovalRejectionNotes>
1672
1673 Should rejection notes be sent to the requestors?  The default is true.
1674
1675 =cut
1676
1677 Set($ApprovalRejectionNotes, 1);
1678
1679
1680 =back
1681
1682 =head1 Miscellaneous Configuration
1683
1684 =over 4
1685
1686 =item C<@ActiveStatus>, C<@InactiveStatus>
1687
1688 You can define new statuses and even reorder existing statuses here.
1689 WARNING. DO NOT DELETE ANY OF THE DEFAULT STATUSES. If you do, RT
1690 will break horribly. The statuses you add must be no longer than
1691 10 characters.
1692
1693 =cut
1694
1695 Set(@ActiveStatus, qw(new open stalled));
1696 Set(@InactiveStatus, qw(resolved rejected deleted));
1697
1698 =item C<$LinkTransactionsRun1Scrip>
1699
1700 RT-3.4 backward compatibility setting. Add/Delete Link used to record one
1701 transaction and run one scrip. Set this value to 1 if you want
1702 only one of the link transactions to have scrips run.
1703
1704 =cut
1705
1706 Set($LinkTransactionsRun1Scrip, 0);
1707
1708 =item C<$StrictLinkACL>
1709
1710 When this feature is enabled a user needs I<ModifyTicket> rights on both
1711 tickets to link them together, otherwise he can have rights on either of
1712 them.
1713
1714 =cut
1715
1716 Set($StrictLinkACL, 1);
1717
1718 =item C<$PreviewScripMessages>
1719
1720 Set C<$PreviewScripMessages> to 1 if the scrips preview on the ticket
1721 reply page should include the content of the messages to be sent.
1722
1723 =cut
1724
1725 Set($PreviewScripMessages, 0);
1726
1727 =item C<$UseTransactionBatch>
1728
1729 Set C<$UseTransactionBatch> to 1 to execute transactions in batches,
1730 such that a resolve and comment (for example) would happen
1731 simultaneously, instead of as two transactions, unaware of each
1732 others' existence.
1733
1734 =cut
1735
1736 Set($UseTransactionBatch, 1);
1737
1738 =item C<@CustomFieldValuesSources>
1739
1740 Set C<@CustomFieldValuesSources> to a list of class names which extend
1741 L<RT::CustomFieldValues::External>.  This can be used to pull lists of
1742 custom field values from external sources at runtime.
1743
1744 =cut
1745
1746 Set(@CustomFieldValuesSources, ());
1747
1748 =item C<$CanonicalizeRedirectURLs>
1749
1750 Set C<$CanonicalizeRedirectURLs> to 1 to use $C<WebURL> when redirecting rather
1751 than the one we get from C<%ENV>.
1752
1753 If you use RT behind a reverse proxy, you almost certainly want to
1754 enable this option.
1755
1756 =cut
1757
1758 Set($CanonicalizeRedirectURLs, 0);
1759 =item C<$EnableReminders>
1760
1761 Hide links/portlets related to Reminders by setting this to 0
1762
1763 =cut
1764
1765 Set($EnableReminders,1);
1766
1767
1768 =item C<@Plugins>
1769
1770 Set C<@Plugins> to a list of external RT plugins that should be enabled (those
1771 plugins have to be previously downloaded and installed).
1772 Example:
1773
1774 C<Set(@Plugins, (qw(Extension::QuickDelete RT::FM)));>
1775
1776 =cut
1777
1778 Set(@Plugins, ());
1779
1780 =back
1781
1782 =head1 Development Configuration
1783
1784 =over 4
1785
1786 =item C<$DevelMode>
1787
1788 RT comes with a "Development mode" setting. 
1789 This setting, as a convenience for developers, turns on 
1790 all sorts of development options that you most likely don't want in 
1791 production:
1792
1793 * Turns off Mason's 'static_source' directive. By default, you can't 
1794   edit RT's web ui components on the fly and have RT magically pick up
1795   your changes. (It's a big performance hit)
1796
1797  * More to come
1798
1799 =cut
1800
1801 Set($DevelMode, '@RT_DEVEL_MODE@');
1802
1803
1804 =back
1805
1806 =head1 Deprecated Options
1807
1808 =over 4
1809
1810 =item C<$AlwaysUseBase64>
1811
1812 Encode blobs as base64 in DB (?)
1813
1814 =item C<$TicketBaseURI>
1815
1816 Base URI to tickets in this system; used when loading (?)
1817
1818 =item C<$UseCodeTickets>
1819
1820 This option is exists for backwards compatibility.  Don't use it.
1821
1822 =back
1823
1824 =cut
1825
1826 1;