diff --git a/conf/.env b/conf/.env new file mode 100644 index 0000000..3f10289 --- /dev/null +++ b/conf/.env @@ -0,0 +1 @@ +APP_SECRET=__KEY__ diff --git a/conf/nginx.conf b/conf/nginx.conf index f68f24f..e19a4d8 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -26,7 +26,7 @@ location __PATH__/ { location ~* ^[^(\.php)]+\.(jpg|jpeg|gif|png|ico|css|pdf|ppt|txt|bmp|rtf|js)$ { access_log off; expires 1h; - add_header Cache-Control public; + more_set_headers "Cache-Control: public"; } # Include SSOWAT user panel. diff --git a/manifest.json b/manifest.json index c7971e2..a554084 100644 --- a/manifest.json +++ b/manifest.json @@ -9,12 +9,12 @@ "version": "2.0.0~ynh1", "url": "https://gitlist.org/", "upstream": { - "license": "BSD 3-Clause", + "license": "BSD-3-Clause", "website": "https://gitlist.org/", "admindoc": "https://github.com/klaussilveira/gitlist/wiki", "code": "https://github.com/klaussilveira/gitlist" }, - "license": "BSD 3-Clause", + "license": "BSD-3-Clause", "maintainer": { "name": "eric_G", "email": "" diff --git a/scripts/install b/scripts/install index df18f41..b96bd1d 100755 --- a/scripts/install +++ b/scripts/install @@ -27,6 +27,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC +#key=$(ynh_string_random --length=32) app=$YNH_APP_INSTANCE_NAME @@ -122,7 +123,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/config.yml" --destination="$final_path/config/config.yml" -chmod 400 "$final_path/config/config.yml" +chmod 650 "$final_path/config/config.yml" chown $app:$app "$final_path/config/config.yml" #================================================= diff --git a/scripts/restore b/scripts/restore index 96ba913..572a4ea 100755 --- a/scripts/restore +++ b/scripts/restore @@ -92,7 +92,7 @@ ynh_install_app_dependencies $pkg_dependencies #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Restoring the PHP-FPM configuration..." --time --weight=1 +ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=1 ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" @@ -102,7 +102,7 @@ ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --phpversion=$p #================================================= # RESTORE THE NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Restoring the NGINX web server configuration..." --time --weight=1 +ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1 ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" diff --git a/scripts/upgrade b/scripts/upgrade index f7ba3d8..515c1c4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -117,7 +117,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Upgrading NGINX web server configuration..." --time --weight=1 +ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 # Create a dedicated NGINX config ynh_add_nginx_config