mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Update upgrade
In # Create .well-known redirection for access by federation if it doesn't exist change cat > /etc/nginx/conf.d/${server_name}.d/server_name.conf <<EOF location /.well-known/matrix/ { return 200 '{"m.server": "$domain", "m.homeserver": "https://$domain"}'; add_header Content-Type application/json; add_header Access-Control-Allow-Origin '*'; } EOF to cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/server_name.conf
This commit is contained in:
parent
be8f0d25d6
commit
69afa42ce2
1 changed files with 1 additions and 7 deletions
|
@ -249,13 +249,7 @@ fi
|
|||
# Create .well-known redirection for access by federation if it doesn't exist
|
||||
if [[ $server_name != $domain ]] && [[ ! -e /etc/nginx/conf.d/${server_name}.d/server_name.conf ]]
|
||||
then
|
||||
cat > /etc/nginx/conf.d/${server_name}.d/server_name.conf <<EOF
|
||||
location /.well-known/matrix/ {
|
||||
return 200 '{"m.server": "$domain", "m.homeserver": "https://$domain"}';
|
||||
add_header Content-Type application/json;
|
||||
add_header Access-Control-Allow-Origin '*';
|
||||
}
|
||||
EOF
|
||||
cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/server_name.conf
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue