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

Update upgrade

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

View file

@ -247,18 +247,18 @@ fi
# Create .well-known redirection for access by federation if it doesn't exist # Create .well-known redirection for access by federation if it doesn't exist
if [[ $server_name != $domain ]]; then if [[ $server_name != $domain ]]; then
if [[ ! -e /var/www/.well-known/${domain}/server_name.json ]]; then if [[ ! -e /var/www/.well-known/${server_nameserver_name}/server_name.json ]]; 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
fi fi
if [[ ! -e /etc/nginx/conf.d/${domain}.d/server_name.conf ]] if [[ ! -e /etc/nginx/conf.d/${server_name}.d/server_name.conf ]]
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