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:
parent
0b78db8c09
commit
69389a3799
3 changed files with 22 additions and 5 deletions
|
@ -1,8 +1,4 @@
|
||||||
rewrite ^$ /;
|
# rewrite ^$ / permanent;
|
||||||
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.";
|
|
||||||
}
|
|
||||||
|
|
||||||
# static files
|
# static files
|
||||||
location ^~ /browser {
|
location ^~ /browser {
|
||||||
|
@ -50,3 +46,8 @@ location ^~ /cool/adminws {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_read_timeout 36000s;
|
proxy_read_timeout 36000s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
alias __INSTALL_DIR__/;
|
||||||
|
index index.html;
|
||||||
|
}
|
||||||
|
|
7
conf/root_index.html
Normal file
7
conf/root_index.html
Normal 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>
|
|
@ -15,6 +15,15 @@ source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
ynh_app_setting_set --app="$app" --key=password --value="$password"
|
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
|
# CONFIGURE ONLYOFFICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue