diff --git a/8.MediaCache/1.Install_cache/0_setup.py b/8.MediaCache/1.Install_cache/0_setup.py index 453fc3046394d2375213f4b663819184e22d085f..761305b0aeec80fc22a25a4ae6ba652a1936e924 100644 --- a/8.MediaCache/1.Install_cache/0_setup.py +++ b/8.MediaCache/1.Install_cache/0_setup.py @@ -8,6 +8,7 @@ def setup(interactive=True): cmds = [ 'mkdir -p /var/www/cache', 'cp %s/index.html /var/www/cache/index.html' % dir_path, + 'cp %s/crossdomain.xml /var/www/cache/crossdomain.xml' % dir_path, 'cp %s/nginx-limits.conf /etc/security/limits.d/nginx.conf' % dir_path, ] utils.run_commands(cmds) diff --git a/8.MediaCache/1.Install_cache/crossdomain.xml b/8.MediaCache/1.Install_cache/crossdomain.xml new file mode 100644 index 0000000000000000000000000000000000000000..ee66213365ea101432ff74724b6aee18581ee31c --- /dev/null +++ b/8.MediaCache/1.Install_cache/crossdomain.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> +<cross-domain-policy> + <allow-access-from domain="*" secure="false"/> + <site-control permitted-cross-domain-policies="all"/> +</cross-domain-policy>