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:
parent
d3af90e776
commit
7b1abdd6db
1 changed files with 5 additions and 5 deletions
|
@ -247,18 +247,18 @@ fi
|
|||
|
||||
# Create .well-known redirection for access by federation if it doesn't exist
|
||||
if [[ $server_name != $domain ]]; then
|
||||
if [[ ! -e /var/www/.well-known/${domain}/server_name.json ]]; then
|
||||
cat > /var/www/.well-known/${domain}/server_name.json <<EOF
|
||||
if [[ ! -e /var/www/.well-known/${server_nameserver_name}/server_name.json ]]; then
|
||||
cat > /var/www/.well-known/${server_name}/server_name.json <<EOF
|
||||
{
|
||||
"m.server": "$domain"
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [[ ! -e /etc/nginx/conf.d/${domain}.d/server_name.conf ]]
|
||||
cat > /etc/nginx/conf.d/${domain}.d/server_name.conf <<EOF
|
||||
if [[ ! -e /etc/nginx/conf.d/${server_name}.d/server_name.conf ]]
|
||||
cat > /etc/nginx/conf.d/${server_name}.d/server_name.conf <<EOF
|
||||
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
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue