1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/librespeed_ynh.git synced 2024-09-03 19:36:23 +02:00

Modifier index.php en index.html

This commit is contained in:
rungeard 2021-05-12 18:18:27 +02:00
parent 78f011e5e3
commit 7fa622ccab
2 changed files with 8 additions and 12 deletions

View file

@ -10,7 +10,7 @@ location __PATH__/ {
} }
### Example PHP configuration (remove it if not used) ### Example PHP configuration (remove it if not used)
index index.php; index index.html;
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
#client_max_body_size 50M; #client_max_body_size 50M;
@ -19,8 +19,7 @@ location __PATH__/ {
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_index index.html;
fastcgi_index index.php;
include fastcgi_params; include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user; fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;

View file

@ -119,7 +119,12 @@ ynh_setup_source --dest_dir="$final_path"
# But FOR THE LOVE OF GOD, do not allow r/x for "others" on the entire folder - # But FOR THE LOVE OF GOD, do not allow r/x for "others" on the entire folder -
# this will be treated as a security issue. # this will be treated as a security issue.
mv $final_path/'example-singleServer-pretty.html' "$final_path/index.html" mv $final_path/'example-singleServer-full.html' "$final_path/index.html"
chmod 750 "$final_path"
chown -R $app:www-data $final_path
chmod o-rwx $final_path
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -171,14 +176,6 @@ ynh_replace_string --match_string="enable_id_obfuscation = false" --replace_stri
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
chmod 750 "$final_path"
chown -R $app:www-data $final_path
chmod o-rwx $final_path
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT