X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Fetc%2FRT_SiteConfig.pm;h=c3d6a66cef2e651c8b26171710470049e4250bdf;hb=443d72d3eb9d1a4c2d6db9562d185980d6fac541;hp=3c37a41bf8c5a67ce89b131643da2397de062070;hpb=7c04e83390fd815fbf75a22118728b2eb6b4f7ad;p=freeside.git diff --git a/rt/etc/RT_SiteConfig.pm b/rt/etc/RT_SiteConfig.pm index 3c37a41bf..c3d6a66ce 100644 --- a/rt/etc/RT_SiteConfig.pm +++ b/rt/etc/RT_SiteConfig.pm @@ -1,15 +1,52 @@ +# Any configuration directives you include here will override +# RT's default configuration file, RT_Config.pm +# +# To include a directive here, just copy the equivalent statement +# from RT_Config.pm and change the value. We've included a single +# sample value below. +# +# This file is actually a perl module, so you can include valid +# perl code, as well. +# +# The converse is also true, if this file isn't valid perl, you're +# going to run into trouble. To check your SiteConfig file, use +# this comamnd: +# +# perl -c /path/to/your/etc/RT_SiteConfig.pm + +#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; $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 , ''); + +# 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;