mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
commit
72590ae377
4 changed files with 10 additions and 9 deletions
|
@ -11,7 +11,7 @@ location __PATH__/ {
|
|||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock;
|
||||
|
||||
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
|
@ -19,7 +19,4 @@ location __PATH__/ {
|
|||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
### End of PHP configuration part
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ app_path=/var/www/$app
|
|||
. /usr/share/yunohost/helpers
|
||||
|
||||
|
||||
if [[ "freshrss" = "$app" ]];
|
||||
if [[ "APPNAMETOCHANGE" = "$app" ]];
|
||||
then
|
||||
for myuser in $(echo "$new_users" | sed "s/,/ /g")
|
||||
do
|
||||
|
|
|
@ -111,6 +111,10 @@ ynh_add_fpm_config
|
|||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
ynh_replace_string "APPNAMETOCHANGE" $app ../hooks/post_app_addaccess
|
||||
ynh_replace_string "APPNAMETOCHANGE" $app ../hooks/post_user_create
|
||||
ynh_replace_string "APPNAMETOCHANGE" $app ../hooks/post_user_delete
|
||||
|
||||
# SETUPING FRESHRSS
|
||||
#=================================================
|
||||
ynh_print_info --message="FreshRSS setup script..."
|
||||
|
@ -157,9 +161,9 @@ chown -R $app: $final_path/extensions/
|
|||
ynh_print_info --message="Configuring SSOwat..."
|
||||
|
||||
#skip api directory
|
||||
ynh_app_setting_set --app="$app" --key=unprotected_uris --value="/api/,/scripts/api.js"
|
||||
ynh_app_setting_set --app="$app" --key=skipped_uris --value="/api/,/scripts/api.js"
|
||||
ynh_app_setting_delete --app="$app" --key=unprotected_regex
|
||||
ynh_app_setting_delete --app="$app" --key=skipped_uris
|
||||
ynh_app_setting_delete --app="$app" --key=unprotected_uris
|
||||
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -180,9 +180,9 @@ $final_path/cli/reconfigure.php --default_user $admin --auth_type http_auth --en
|
|||
#=================================================
|
||||
ynh_print_info --message="Upgrading SSOwat configuration..."
|
||||
|
||||
ynh_app_setting_set --app="$app" --key=unprotected_uris --value="/api/,/scripts/api.js"
|
||||
ynh_app_setting_set --app="$app" --key=skipped_uris --value="/api/,/scripts/api.js"
|
||||
ynh_app_setting_delete --app="$app" --key=unprotected_regex
|
||||
ynh_app_setting_delete --app="$app" --key=skipped_uris
|
||||
ynh_app_setting_delete --app="$app" --key=unprotected_uris
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
|
|
Loading…
Add table
Reference in a new issue