mirror of
https://github.com/YunoHost-Apps/gitlist_ynh.git
synced 2024-09-03 18:36:18 +02:00
commit
8e5591a040
6 changed files with 9 additions and 7 deletions
1
conf/.env
Normal file
1
conf/.env
Normal file
|
@ -0,0 +1 @@
|
||||||
|
APP_SECRET=__KEY__
|
|
@ -26,7 +26,7 @@ location __PATH__/ {
|
||||||
location ~* ^[^(\.php)]+\.(jpg|jpeg|gif|png|ico|css|pdf|ppt|txt|bmp|rtf|js)$ {
|
location ~* ^[^(\.php)]+\.(jpg|jpeg|gif|png|ico|css|pdf|ppt|txt|bmp|rtf|js)$ {
|
||||||
access_log off;
|
access_log off;
|
||||||
expires 1h;
|
expires 1h;
|
||||||
add_header Cache-Control public;
|
more_set_headers "Cache-Control: public";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
"version": "2.0.0~ynh1",
|
"version": "2.0.0~ynh1",
|
||||||
"url": "https://gitlist.org/",
|
"url": "https://gitlist.org/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "BSD 3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"website": "https://gitlist.org/",
|
"website": "https://gitlist.org/",
|
||||||
"admindoc": "https://github.com/klaussilveira/gitlist/wiki",
|
"admindoc": "https://github.com/klaussilveira/gitlist/wiki",
|
||||||
"code": "https://github.com/klaussilveira/gitlist"
|
"code": "https://github.com/klaussilveira/gitlist"
|
||||||
},
|
},
|
||||||
"license": "BSD 3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
"name": "eric_G",
|
"name": "eric_G",
|
||||||
"email": ""
|
"email": ""
|
||||||
|
|
|
@ -27,6 +27,7 @@ ynh_abort_if_errors
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url="/"
|
path_url="/"
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
#key=$(ynh_string_random --length=32)
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
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"
|
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"
|
chown $app:$app "$final_path/config/config.yml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -92,7 +92,7 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# 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"
|
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
|
# 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"
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# 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
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
Loading…
Add table
Reference in a new issue