mirror of
https://github.com/YunoHost-Apps/converse_ynh.git
synced 2024-09-03 18:25:53 +02:00
Fix
This commit is contained in:
parent
be40bc74c6
commit
bc16a91f54
3 changed files with 15 additions and 2 deletions
|
@ -2,13 +2,24 @@
|
|||
location __PATH__/ {
|
||||
|
||||
# Path to source
|
||||
alias __FINALPATH__/ ;
|
||||
alias __FINALPATH__/;
|
||||
|
||||
index index.html;
|
||||
|
||||
# Force usage of https
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
||||
location ~ ^__PATH__/http-bind/ {
|
||||
proxy_pass http://__DOMAIN__;
|
||||
}
|
||||
|
||||
location ~ .(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ {
|
||||
add_header Access-Control-Allow-Origin "*"; # Decide here whether you want to allow all or only a particular domain
|
||||
root __FINALPATH__/; # Properly set the path here
|
||||
}
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
|
|
|
@ -59,6 +59,8 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
|||
# Download, the source from sources folder
|
||||
mkdir -p $final_path && cp -a ../sources/* $final_path
|
||||
|
||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/index.html"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
authentication: 'login',
|
||||
auto_away: 300,
|
||||
auto_reconnect: true,
|
||||
bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
|
||||
bosh_service_url: 'https://__DOMAIN__/http-bind/',
|
||||
message_archiving: 'always',
|
||||
view_mode: 'fullscreen'
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue