From 1b9e45b38ed7b340dd809cfe0c4c3835ccfd7d73 Mon Sep 17 00:00:00 2001 From: Thatoo Date: Mon, 1 Jul 2019 13:06:03 +0200 Subject: [PATCH] .well-known redirection for access by federation Create .well-known redirection for access by federation --- scripts/install | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/scripts/install b/scripts/install index a57d469..814c07b 100644 --- a/scripts/install +++ b/scripts/install @@ -193,6 +193,23 @@ form_secret=$(egrep "^form_secret" homeserver.yml | cut -d'"' -f2) ynh_app_setting_set $app registration_shared_secret "$registration_shared_secret" ynh_app_setting_set $app form_secret "$form_secret" +# Create .well-known redirection for access by federation +if [[ $server_name != $domain ]]; then + cat > /var/www/.well-known/${domain}/server_name.json < /etc/nginx/conf.d/${domain}.d/name_server.conf <