1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/collabora_ynh.git synced 2024-09-03 18:16:25 +02:00

Use a index.html instead of return in nginx

This commit is contained in:
Salamandar 2024-01-29 15:15:34 +01:00
parent 0b78db8c09
commit 69389a3799
3 changed files with 22 additions and 5 deletions

View file

@ -1,8 +1,4 @@
rewrite ^$ /;
location ~ ^/$ {
default_type text/plain;
return 200 "This is where Collabora Online is installed. To actually be useful, this needs to be integrated in a front-end such as Nextcloud for example.";
}
# rewrite ^$ / permanent;
# static files
location ^~ /browser {
@ -50,3 +46,8 @@ location ^~ /cool/adminws {
proxy_set_header Host $host;
proxy_read_timeout 36000s;
}
location / {
alias __INSTALL_DIR__/;
index index.html;
}

7
conf/root_index.html Normal file
View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<head></head>
<body>
This is where Collabora Online is installed. To actually be useful, this needs to be integrated in a front-end such as Nextcloud for example.
</body>
</html>

View file

@ -15,6 +15,15 @@ source /usr/share/yunohost/helpers
ynh_app_setting_set --app="$app" --key=password --value="$password"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=1
ynh_add_config --template="root_index.html" --destination="$install_dir/index.html"
chown -R "$app:www-data" "$install_dir"
#=================================================
# CONFIGURE ONLYOFFICE
#=================================================