import rt 3.0.12
[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 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 # You should set this to your organization's DNS domain. For example,
30 # fsck.com or asylum.arkham.ma.us. It's used by the linking interface to
31 # guarantee that ticket URIs are unique and easy to construct.
32
33 Set($Organization , "example.com");
34
35 # $user_passwd_min defines the minimum length for user passwords. Setting
36 # it to 0 disables this check
37 Set($MinimumPasswordLength , "5");
38
39 # $Timezone is used to convert times entered by users into GMT and back again
40 # It should be set to a timezone recognized by your local unix box.
41 Set($Timezone , 'US/Eastern');
42
43 # }}}
44
45 # {{{ Database Configuration
46
47 # Database driver beeing used. Case matters
48 # Valid types are "mysql", "Oracle" and "Pg"
49
50 Set($DatabaseType , '@DB_TYPE@');
51
52 # The domain name of your database server
53 # If you're running mysql and it's on localhost,
54 # leave it blank for enhanced performance
55 Set($DatabaseHost   , '@DB_HOST@');
56 Set($DatabaseRTHost , '@DB_RT_HOST@');
57
58 # The port that your database server is running on.  Ignored unless it's
59 # a positive integer. It's usually safe to leave this blank
60 Set($DatabasePort , '@DB_PORT@');
61
62 #The name of the database user (inside the database)
63 Set($DatabaseUser , '@DB_RT_USER@');
64
65 # Password the DatabaseUser should use to access the database
66 Set($DatabasePassword , '@DB_RT_PASS@');
67
68 # The name of the RT's database on your database server
69 Set($DatabaseName , '@DB_DATABASE@');
70
71 # If you're using Postgres and have compiled in SSL support,
72 # set DatabaseRequireSSL to 1 to turn on SSL communication
73 Set($DatabaseRequireSSL , undef);
74
75 # }}}
76
77 # {{{ Incoming mail gateway configuration
78
79 # OwnerEmail is the address of a human who manages RT. RT will send
80 # errors generated by the mail gateway to this address.  This address
81 # should _not_ be an address that's managed by your RT instance.
82
83 Set($OwnerEmail , 'root');
84
85 # If $LoopsToRTOwner is defined, RT will send mail that it believes
86 # might be a loop to $RT::OwnerEmail
87
88 Set($LoopsToRTOwner , 1);
89
90 # If $StoreLoopss is defined, RT will record messages that it believes
91 # to be part of mail loops.
92 # As it does this, it will try to be careful not to send mail to the
93 # sender of these messages
94
95 Set($StoreLoops , undef);
96
97 # $MaxAttachmentSize sets the maximum size (in bytes) of attachments stored
98 # in the database.
99
100 # For mysql and oracle, we set this size at 10 megabytes.
101 # If you're running a postgres version earlier than 7.1, you will need
102 # to drop this to 8192. (8k)
103
104 Set($MaxAttachmentSize , 10000000);
105
106 # $TruncateLongAttachments: if this is set to a non-undef value,
107 # RT will truncate attachments longer than MaxAttachmentLength.
108
109 Set($TruncateLongAttachments , undef);
110
111 # $DropLongAttachments: if this is set to a non-undef value,
112 # RT will silently drop attachments longer than MaxAttachmentLength.
113
114 Set($DropLongAttachments , undef);
115
116 # If $ParseNewMessageForTicketCcs is true, RT will attempt to divine
117 # Ticket 'Cc' watchers from the To and Cc lines of incoming messages
118 # Be forewarned that if you have _any_ addresses which forward mail to
119 # RT automatically and you enable this option without modifying
120 # "RTAddressRegexp" below, you will get yourself into a heap of trouble.
121
122 Set($ParseNewMessageForTicketCcs , undef);
123
124 # RTAddressRegexp is used to make sure RT doesn't add itself as a ticket CC if
125 # the setting above is enabled.
126
127 Set($RTAddressRegexp , '^rt\@example.com$');
128
129 # RT provides functionality which allows the system to rewrite
130 # incoming email addresses.  In its simplest form,
131 # you can substitute the value in CanonicalizeEmailAddressReplace
132 # for the value in CanonicalizeEmailAddressMatch
133 # (These values are passed to the CanonicalizeEmailAddress subroutine in RT/User.pm)
134 # By default, that routine performs a s/$Match/$Replace/gi on any address passed to it
135
136 Set($CanonicalizeEmailAddressMatch   , 'subdomain.example.com$');
137 Set($CanonicalizeEmailAddressReplace , 'example.com');
138
139 # If $SenderMustExistInExternalDatabase is true, RT will refuse to
140 # create non-privileged accounts for unknown users if you are using
141 # the "LookupSenderInExternalDatabase" option.
142 # Instead, an error message will be mailed and RT will forward the
143 # message to $RTOwner.
144 #
145 # If you are not using $LookupSenderInExternalDatabase, this option
146 # has no effect.
147 #
148 # If you define an AutoRejectRequest template, RT will use this
149 # template for the rejection message.
150
151 Set($SenderMustExistInExternalDatabase , undef);
152
153 # }}}
154
155 # {{{ Outgoing mail configuration
156
157 # RT is designed such that any mail which already has a ticket-id associated
158 # with it will get to the right place automatically.
159
160 # $CorrespondAddress and $CommentAddress are the default addresses
161 # that will be listed in From: and Reply-To: headers of correspondence
162 # and comment mail tracked by RT, unless overridden by a queue-specific
163 # address.
164
165 Set($CorrespondAddress , 'RT_CorrespondAddressNotSet');
166
167 Set($CommentAddress , 'RT_CommentAddressNotSet');
168
169 #Sendmail Configuration
170
171 # $MailCommand defines which method RT will use to try to send mail
172 # We know that 'sendmailpipe' works fairly well.
173 # If 'sendmailpipe' doesn't work well for you, try 'sendmail'
174 #
175 # Note that you should remove the '-t' from $SendmailArguments
176 # if you use 'sendmail rather than 'sendmailpipe'
177
178 Set($MailCommand , 'sendmailpipe');
179
180 # $SendmailArguments defines what flags to pass to $Sendmail
181 # assuming you picked 'sendmail' or 'sendmailpipe' as the $MailCommand above.
182 # If you picked 'sendmailpipe', you MUST add a -t flag to $SendmailArguments
183
184 # These options are good for most sendmail wrappers and workalikes
185 Set($SendmailArguments , "-oi -t");
186
187 # These arguments are good for sendmail brand sendmail 8 and newer
188 #Set($SendmailArguments,"-oi -t -ODeliveryMode=b -OErrorMode=m");
189
190 # If you selected 'sendmailpipe' above, you MUST specify the path
191 # to your sendmail binary in $SendmailPath.
192 # !! If you did not # select 'sendmailpipe' above, this has no effect!!
193 Set($SendmailPath , "/usr/sbin/sendmail");
194
195 # By default, RT sets the outgoing mail's "From:" header to
196 # "SenderName via RT".  Setting this option to 0 disables it.
197
198 Set($UseFriendlyFromLine , 1);
199
200 # sprintf() format of the friendly 'From:' header; its arguments
201 # are SenderName and SenderEmailAddress.
202 Set($FriendlyFromLineFormat , "\"%s via RT\" <%s>");
203
204 # RT can optionally set a "Friendly" 'To:' header when sending messages to
205 # Ccs or AdminCcs (rather than having a blank 'To:' header.
206
207 # This feature DOES NOT WORK WITH SENDMAIL[tm] BRAND SENDMAIL
208 # If you are using sendmail, rather than postfix, qmail, exim or some other MTA,
209 # you _must_ disable this option.
210
211 Set($UseFriendlyToLine , 0);
212
213 # sprintf() format of the friendly 'From:' header; its arguments
214 # are WatcherType and TicketId.
215 Set($FriendlyToLineFormat, "\"%s of $RT::rtname Ticket #%s\":;");
216
217 # By default RT doesn't notify the person who performs an update, as they
218 # already know what they've done. If you'd like to change this behaviour,
219 # Set $NotifyActor to 1
220
221 Set($NotifyActor, 0);
222
223
224 # }}}
225
226 # {{{ Logging
227
228 # Logging.  The default is to log anything except debugging
229 # information to syslog.  Check the Log::Dispatch POD for
230 # information about how to get things by syslog, mail or anything
231 # else, get debugging info in the log, etc.
232
233 #  It might generally make
234 # sense to send error and higher by email to some administrator.
235 # If you do this, be careful that this email isn't sent to this RT instance.
236
237 # the minimum level error that will be logged to the specific device.
238 # levels from lowest to highest:
239 #  debug info notice warning error critical alert emergency
240
241 #  Mail loops will generate a critical log message.
242 Set($LogToSyslog    , 'debug');
243 Set($LogToScreen    , 'error');
244 Set($LogToFile      , undef);
245 Set($LogDir, '@RT_LOG_PATH@');
246 Set($LogToFileNamed , "rt.log");    #log to rt.log
247
248 # On Solaris or UnixWare, set to ( socket => 'inet' ).  Options here
249 # override any other options RT passes to Log::Dispatch::Syslog.
250 # Other interesting flags include facility and logopt.  (See the
251 # Log::Dispatch::Syslog documentation for more information.)  (Maybe
252 # ident too, if you have multiple RT installations.)
253
254 @LogToSyslogConf = () unless (@LogToSyslogConf);
255
256 # }}}
257
258 # {{{ Web interface configuration
259
260 # Define the directory name to be used for images in rt web
261 # documents.
262
263 # If you're putting the web ui somewhere other than at the root of
264 # your server
265 # $WebPath requires a leading / but no trailing /
266
267 Set($WebPath , "");
268
269 # This is the Scheme, server and port for constructing urls to webrt
270 # $WebBaseURL doesn't need a trailing /
271
272 Set($WebBaseURL , "http://RT::WebBaseURL.not.configured:80");
273
274 Set($WebURL , $WebBaseURL . $WebPath . "/");
275
276 # $WebImagesURL points to the base URL where RT can find its images.
277
278 Set($WebImagesURL , $WebURL . "NoAuth/images/");
279
280 # $RTLogoURL points to the URL of the RT logo displayed in the web UI
281
282 Set($LogoURL , $WebImagesURL . "rt.jpg");
283
284 # For message boxes, set the entry box width and what type of wrapping
285 # to use.
286 #
287 # Default width: 72
288 Set($MessageBoxWidth , 72);
289
290 # Default wrapping: "HARD"  (choices "SOFT", "HARD")
291 Set($MessageBoxWrap, "HARD");
292
293 # if TrustHTMLAttachments is not defined, we will display them
294 # as text. This prevents malicious HTML and javascript from being
295 # sent in a request (although there is probably more to it than that)
296 Set($TrustHTMLAttachments , undef);
297
298 # If $WebExternalAuth is defined, RT will defer to the environment's
299 # REMOTE_USER variable.
300
301 Set($WebExternalAuth , undef);
302
303 # If $WebFallbackToInternalAuth is undefined, the user is allowed a chance
304 # of fallback to the login screen, even if REMOTE_USER failed.
305
306 Set($WebFallbackToInternalAuth , undef);
307
308 # $WebExternalGecos means to match 'gecos' field as the user identity);
309 # useful with mod_auth_pwcheck and IIS Integrated Windows logon.
310
311 Set($WebExternalGecos , undef);
312
313 # $WebExternalAuto will create users under the same name as REMOTE_USER
314 # upon login, if it's missing in the Users table.
315
316 Set($WebExternalAuto , undef);
317
318 # $WebSessionClass is the class you wish to use for managing Sessions.
319 # It defaults to use your SQL database, but if you are using MySQL 3.x and
320 # plans to use non-ascii Queue names, uncomment and add this line to
321 # RT_SiteConfig.pm will prevent session corruption.
322
323 # Set($WebSessionClass , 'Apache::Session::File');
324
325 # $MaxInlineBody is the maximum attachment size that we want to see
326 # inline when viewing a transaction. 13456 is a random sane-sounding
327 # default.
328
329 Set($MaxInlineBody, 13456);
330
331 # $MyTicketsLength is the length of the owned tickets table on the
332 # front page. For some people, the default of 10 isn't big enough
333 # to get a feel for how much work needs to be done before you get
334 # some time off.
335
336 Set($MyTicketsLength, 10);
337
338 # $MyRequestsLength is the length of the requested tickets table
339 # on the front page.
340
341 Set($MyRequestsLength, 10);
342
343 # @MasonParameters is the list of parameters for the constructor of
344 # HTML::Mason's Apache or CGI Handler.  This is normally only useful
345 # for debugging, eg. profiling individual components with
346 #     (preamble => 'my $p = MasonX::Profiler->new($m, $r);');
347
348 @MasonParameters = () unless (@MasonParameters);
349
350 # }}}
351
352 # {{{ RT UTF-8 Settings
353
354 # An array that contains languages supported by RT's internationalization
355 # interface.  Defaults to all *.po lexicons; set it to qw(en ja) will make
356 # RT bilingual instead of multilingual, but will save same memory.
357
358 @LexiconLanguages = qw(*) unless (@LexiconLanguages);
359
360 # An array that contains default encodings used to guess which charset
361 # an attachment uses if not specified.  Must be recognized by
362 # Encode::Guess.
363
364 @EmailInputEncodings = qw(utf-8 iso-8859-1 us-ascii) unless (@EmailInputEncodings);
365
366 # The charset for localized email.  Must be recognized by Encode.
367
368 Set($EmailOutputEncoding , 'utf-8');
369
370 # }}}
371
372 # {{{ RT Date Handling Options (for Time::ParseDate)
373
374 # Set this to 1 if your local date convention looks like "dd/mm/yy"
375 # instead of "mm/dd/yy".
376
377 Set($DateDayBeforeMonth , 1);
378
379 # Should "Tuesday" default to meaning "Next Tuesday" or "Last Tuesday"?
380 # Set to 0 for "Next" or 1 for "Last".
381
382 Set($AmbiguousDayInPast , 1);
383
384 # }}}
385
386 1;