mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Update install
In # Create .well-known redirection for access by federation 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 after creation of ../conf/server_name.conf file.
This commit is contained in:
parent
4f2de63065
commit
be8f0d25d6
1 changed files with 1 additions and 7 deletions
|
@ -196,13 +196,7 @@ 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 ]]
|
if [[ $server_name != $domain ]]
|
||||||
then
|
then
|
||||||
cat > /etc/nginx/conf.d/${server_name}.d/server_name.conf <<EOF
|
cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/server_name.conf
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue