1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Update install

This commit is contained in:
Thatoo 2019-07-08 00:39:52 +02:00 committed by GitHub
parent c03badac7c
commit d3af90e776
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,15 +195,15 @@ ynh_app_setting_set $app form_secret "$form_secret"
# Create .well-known redirection for access by federation # Create .well-known redirection for access by federation
if [[ $server_name != $domain ]]; then if [[ $server_name != $domain ]]; then
cat > /var/www/.well-known/${domain}/server_name.json <<EOF cat > /var/www/.well-known/${server_name}/server_name.json <<EOF
{ {
"m.server": "$domain" "m.server": "$domain"
} }
EOF EOF
cat > /etc/nginx/conf.d/${domain}.d/server_name.conf <<EOF cat > /etc/nginx/conf.d/${server_name}.d/server_name.conf <<EOF
location /.well-known/matrix/server { location = /.well-known/matrix/server {
alias /var/www/.well-known/${domain}/server_name.json; alias /var/www/.well-known/${server_name}/server_name.json;
} }
EOF EOF
fi fi