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

fix nginx.conf

This commit is contained in:
rungeard 2021-05-12 18:41:59 +02:00
parent c9884ad30f
commit ebd379481f
2 changed files with 6 additions and 7 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.html; index index.html index.php;
# 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,7 +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.html 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

@ -121,8 +121,9 @@ ynh_setup_source --dest_dir="$final_path"
mv $final_path/'example-singleServer-full.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
@ -174,9 +175,7 @@ ynh_replace_string --match_string="enable_id_obfuscation = false" --replace_stri
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================
chmod 750 "$final_path"
chown -R $app:www-data $final_path
chmod o-rwx $final_path
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================