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:
parent
c03badac7c
commit
d3af90e776
1 changed files with 4 additions and 4 deletions
|
@ -195,15 +195,15 @@ 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 <<EOF
|
||||
cat > /var/www/.well-known/${server_name}/server_name.json <<EOF
|
||||
{
|
||||
"m.server": "$domain"
|
||||
}
|
||||
EOF
|
||||
|
||||
cat > /etc/nginx/conf.d/${domain}.d/server_name.conf <<EOF
|
||||
location /.well-known/matrix/server {
|
||||
alias /var/www/.well-known/${domain}/server_name.json;
|
||||
cat > /etc/nginx/conf.d/${server_name}.d/server_name.conf <<EOF
|
||||
location = /.well-known/matrix/server {
|
||||
alias /var/www/.well-known/${server_name}/server_name.json;
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue