1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/drupal7_ynh.git synced 2024-09-03 18:26:19 +02:00

Merge pull request #39 from YunoHost-Apps/testing

[fix] Private uploaded files
This commit is contained in:
Alexandre Aubin 2021-11-14 18:40:28 +01:00 committed by GitHub
commit 1cd86f016d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ location __PATH__/ {
# Handle private files through Drupal. Private file's path can come
# with a language prefix.
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
rewrite ^((/[a-z\-]+)?/system/files/(.+))$ /index.php?q=$1 last;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {

View file

@ -81,7 +81,7 @@ ynh_script_progression --message="Restoring PHP-FPM configuration..."
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
# Recreate a dedicated php-fpm config
ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencies"
ynh_add_fpm_config --package="$extra_php_dependencies"
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================