1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bludit_ynh.git synced 2024-09-03 18:06:13 +02:00

Add .htaccess config

This commit is contained in:
ericgaspar 2020-10-18 13:29:13 +02:00
parent 355fb8d83f
commit 8b2d61627b
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 18 additions and 2 deletions

View file

@ -11,9 +11,9 @@ location __PATH__/ {
index index.php; index index.php;
#if (!-e $request_filename) { rewrite ^ /bludit/index.php last; } if (!-e $request_filename) { rewrite ^ __PATH__/index.php last; }
try_files $uri $uri/ /bludit//bludit/index.php?$args; #try_files $uri $uri/ /bludit//bludit/index.php?$args;
location __PATH__/bl-content/databases/ { deny all; } location __PATH__/bl-content/databases/ { deny all; }
location __PATH__/bl-content/workspaces/ { deny all; } location __PATH__/bl-content/workspaces/ { deny all; }

View file

@ -83,6 +83,14 @@ ynh_script_progression --message="Configuring PHP-FPM..." --weight=2
ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies"
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
# CONFIGURE BLUDIT
#=================================================
ynh_script_progression --message="Configuring .htaccess..." --weight=1
# Change variables in ttrss configuration
ynh_replace_string --match_string="on" --replace_string="off" --target_file="$final_path/.htaccess"
#================================================= #=================================================
# SECURE FILES AND DIRECTORIES # SECURE FILES AND DIRECTORIES
#================================================= #=================================================

View file

@ -94,6 +94,14 @@ then
ynh_setup_source --dest_dir=$final_path ynh_setup_source --dest_dir=$final_path
fi fi
#=================================================
# CONFIGURE BLUDIT
#=================================================
ynh_script_progression --message="Configuring .htaccess..." --weight=1
# Change variables in ttrss configuration
ynh_replace_string --match_string="on" --replace_string="off" --target_file="$final_path/.htaccess"
#================================================= #=================================================
# SECURE FILES AND DIRECTORIES # SECURE FILES AND DIRECTORIES
#================================================= #=================================================