From b43c3e6f5c2d1430ae00f60547618fb411e55e1a Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 27 Feb 2019 19:44:09 +0100 Subject: [PATCH] Fix X-Frame --- scripts/install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install b/scripts/install index f6ff792..dfc729c 100644 --- a/scripts/install +++ b/scripts/install @@ -173,6 +173,9 @@ fi # Create a dedicated nginx config ynh_add_nginx_config "nextclouddomain" +# Fix main domain X-Frame-Options +ynh_replace_string "X-Frame-Options : SAMEORIGIN" "X-Frame-Options : ALLOW-FROM https://$nextclouddomain" "/etc/nginx/conf.d/$domain.conf" + #================================================= # CREATE DEDICATED USER #================================================= @@ -246,6 +249,8 @@ ynh_print_info "Reloading OnlyOffice..." ynh_systemd_action --service_name=supervisor --action=restart --line_match="INFO success: docservice entered RUNNING state" --log_path="systemd" +sleep 10 + #================================================= # END OF SCRIPT #=================================================