Commit 6fa4eb8a authored by Jonathon Duerig's avatar Jonathon Duerig

Added code to create www/crossdomain.xml and www/protogeni/crossdomain.xml....

Added code to create www/crossdomain.xml and www/protogeni/crossdomain.xml. The former allows flash clients to use the latter. The latter allows flash clients to access the xmlrpc interface if they hail from boss, ops or *.protogeni.net
parent 6295fdb6
......@@ -195,6 +195,46 @@ if ($needpkgs) {
exit(1);
}
#
# crossdomain.xml is needed to allow the flash client to talk to
# this host.
#
my $crosstext = <<'CROSSEND';
<?xml version="1.0"?>
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
</cross-domain-policy>
CROSSEND
open CROSS_OUT, ">$TB/www/crossdomain.xml"
or fatal("Could not create $TB/www/crossdomain.xml");
print CROSS_OUT $crosstext;
close CROSS_OUT;
chmod(0644, "$TB/www/crossdomain.xml");
if (! -e "$TB/www/protogeni") {
mkdir("$TB/www/protogeni", 0775)
or fatal("Could not mkdir $TB/www/protogeni");
}
$crosstext = <<'CROSSEND';
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="boss.emulab.net" />
<allow-access-from domain="users.emulab.net" />
<allow-access-from domain="*.protogeni.net" />
</cross-domain-policy>
CROSSEND
open CROSS_OUT, ">$TB/www/protogeni/crossdomain.xml"
or fatal("Could not create $TB/www/protogeni/crossdomain.xml");
print CROSS_OUT $crosstext;
close CROSS_OUT;
chmod(0644, "$TB/www/protogeni/crossdomain.xml");
#
# The web server needs to do client authentication, for the geni xmlrpc
# interface. A bundle of CA certs from the trusted roots (emulabs) will
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment