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 <