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:
parent
355fb8d83f
commit
8b2d61627b
3 changed files with 18 additions and 2 deletions
|
@ -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; }
|
||||||
|
|
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue