Skip to content

Commit 71679a8

Browse files
committed
fixing cross-site for defaults
1 parent 94444f8 commit 71679a8

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

.openshift/action_hooks/build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,9 @@ sed -i'' "s|__USER__|$(id -un)|" ${OPENSHIFT_REPO_DIR}/perl/.htaccess
4141
sed -i'' "s|__GROUP__|$(groups | cut -d ' ' -f 1)|" ${OPENSHIFT_REPO_DIR}/perl/.htaccess
4242
log_info "Finished perl template -- perl/.htaccess"
4343

44+
log_info "Building RT_SiteConfig"
45+
cp ${OPENSHIFT_REPO_DIR}/configs/RT_SiteConfig.pm ${OPENSHIFT_REPO_DIR}/../install-root/etc/
46+
sed -i'' "s|__HOSTNAME__|${OPENSHIFT_APP_DNS}|" ${OPENSHIFT_REPO_DIR}/../install-root/etc/RT_SiteConfig.pm
47+
sed -i'' "s|__REFERRERS__|${OPENSHIFT_APP_DNS}|" ${OPENSHIFT_REPO_DIR}/../install-root/etc/RT_SiteConfig.pm
48+
log_info "Finished Building RT_SiteConfig"
4449
log_info "Build Finished"

configs/RT_SiteConfig.pm

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,4 @@
1-
# Any configuration directives you include here will override
2-
# RT's default configuration file, RT_Config.pm
3-
#
4-
# To include a directive here, just copy the equivalent statement
5-
# from RT_Config.pm and change the value. We've included a single
6-
# sample value below.
7-
#
8-
# This file is actually a perl module, so you can include valid
9-
# perl code, as well.
10-
#
11-
# The converse is also true, if this file isn't valid perl, you're
12-
# going to run into trouble. To check your SiteConfig file, use
13-
# this command:
14-
#
15-
# perl -c /path/to/your/etc/RT_SiteConfig.pm
16-
#
17-
# You must restart your webserver after making changes to this file.
18-
19-
Set( $rtname, 'example.com');
20-
21-
# You must install Plugins on your own, this is only an example
22-
# of the correct syntax to use when activating them.
23-
# Plugin( "RT::Extension::QuickDelete" );
24-
# Plugin( "RT::Extension::CommandByMail" );
1+
Set( $rtname, '__HOSTNAME__' );
2+
Set( @ReferrerWhitelist, qw(__REFERRERS__) );
253

264
1;

0 commit comments

Comments
 (0)