From c35d48b6e6db5ce60da9c6103af9f3b699a74dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Wed, 20 Dec 2017 10:57:57 +0100 Subject: [PATCH] deploy crossdomain.xml whenever deploying a cache, refs #23810 --- 8.MediaCache/1.Install_cache/0_setup.py | 1 + 8.MediaCache/1.Install_cache/crossdomain.xml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 8.MediaCache/1.Install_cache/crossdomain.xml diff --git a/8.MediaCache/1.Install_cache/0_setup.py b/8.MediaCache/1.Install_cache/0_setup.py index 453fc304..761305b0 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 00000000..ee662133 --- /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> -- GitLab