X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fetc%2FRT_SiteConfig.pm;h=c3d6a66cef2e651c8b26171710470049e4250bdf;hb=5e05724a635a22776f1b973f5d7e77989da4e048;hp=affd36bb3a1e6fb2cf28157834081d41a89b6557;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0;p=freeside.git diff --git a/rt/etc/RT_SiteConfig.pm b/rt/etc/RT_SiteConfig.pm index affd36bb3..c3d6a66ce 100644 --- a/rt/etc/RT_SiteConfig.pm +++ b/rt/etc/RT_SiteConfig.pm @@ -16,14 +16,15 @@ #Set( $rtname, 'example.com'); +# These settings should have been inserted by the initial Freeside install. +# Sometimes you may want to change domain, timezone, or freeside::URL later, +# everything else should probably stay untouched. + $RT::rtname = '%%%RT_DOMAIN%%%'; $RT::Organization = '%%%RT_DOMAIN%%%'; $RT::Timezone = '%%%RT_TIMEZONE%%%'; -$RT::WebBaseURL = ''; -$RT::WebPath = '/freeside/rt'; - $RT::WebExternalAuth = 1; $RT::WebFallbackToInternal = 1; #no $RT::WebExternalAuto = 1; @@ -31,10 +32,21 @@ $RT::WebExternalAuto = 1; $RT::URI::freeside::IntegrationType = 'Internal'; $RT::URI::freeside::URL = '%%%FREESIDE_URL%%%'; +$RT::URI::freeside::URL =~ m(^(https?://[^/]+)(/.*)$)i; +$RT::WebBaseURL = $1; +$RT::WebPath = "$2/rt"; + Set($DatabaseHost , ''); -#perl 5.8.0 - 5.8.2 experiment -#@EmailInputEncodings = qw(iso-8859-1 us-ascii utf-8); # unless (@EmailInputEncodings); -#Set($EmailOutputEncoding , 'iso-8859-1'); +# These settings are user-editable. + +#old, RT 3.4 style (deprecated, useless): +#$RT::MyTicketsLength = 10; +#NEW, RT 3.6 style (uncomment to use): +#Set($DefaultSummaryRows, 10); + +$RT::QuickCreateLong = 0; #set to true to cause quick ticket creation to + #redirect to the "long" ticket creation screen + #instead of just creating a ticket with the subject. 1;