mirror of
https://github.com/YunoHost-Apps/bookstack_ynh.git
synced 2024-09-03 18:16:02 +02:00
Merge branch 'sub-folder' into testing
This commit is contained in:
commit
d6da9ad47c
7 changed files with 37 additions and 16 deletions
|
@ -6,7 +6,7 @@
|
||||||
;; Test complet
|
;; Test complet
|
||||||
; Manifest
|
; Manifest
|
||||||
domain="domain.tld" (DOMAIN)
|
domain="domain.tld" (DOMAIN)
|
||||||
path="/" (PATH)
|
path="/path" (PATH)
|
||||||
language="fr"
|
language="fr"
|
||||||
is_public=1 (PUBLIC|public=1|private=0)
|
is_public=1 (PUBLIC|public=1|private=0)
|
||||||
; Checks
|
; Checks
|
||||||
|
|
|
@ -49,7 +49,7 @@ MAIL_PASSWORD=null
|
||||||
MAIL_ENCRYPTION=null
|
MAIL_ENCRYPTION=null
|
||||||
|
|
||||||
# General auth
|
# General auth
|
||||||
AUTH_METHOD=ldap
|
AUTH_METHOD=standard
|
||||||
|
|
||||||
# The LDAP host, Adding a port is optional
|
# The LDAP host, Adding a port is optional
|
||||||
LDAP_SERVER=ldap://127.0.0.1:389
|
LDAP_SERVER=ldap://127.0.0.1:389
|
||||||
|
@ -68,7 +68,7 @@ LDAP_PASS=false
|
||||||
# The user-provided user-name used to replace any occurrences of '${user}'
|
# The user-provided user-name used to replace any occurrences of '${user}'
|
||||||
# If you're setting this option via other means, such as within a docker-compose.yml,
|
# If you're setting this option via other means, such as within a docker-compose.yml,
|
||||||
# you may need escape the $, often using $$ or \$ instead.
|
# you may need escape the $, often using $$ or \$ instead.
|
||||||
LDAP_USER_FILTER=(&(uid=${user}))
|
LDAP_USER_FILTER=(&(|(objectclass=posixAccount))(uid={{username}})(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))
|
||||||
|
|
||||||
# Set the LDAP version to use when connecting to the server
|
# Set the LDAP version to use when connecting to the server
|
||||||
LDAP_VERSION=false
|
LDAP_VERSION=false
|
||||||
|
|
|
@ -9,11 +9,13 @@ location __PATH__/ {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
client_max_body_size 100m;
|
||||||
|
client_body_timeout 120s; # Default is 60, May need to be increased for very large uploads
|
||||||
|
|
||||||
index index.php;
|
index index.php;
|
||||||
#try_files $uri $uri/ @bookstack;
|
try_files $uri $uri/ @bookstack;
|
||||||
|
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
|
||||||
|
|
||||||
|
#try_files $uri $uri/ index.php;
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
||||||
|
@ -28,6 +30,6 @@ location __PATH__/ {
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
|
||||||
#location @bookstack {
|
location @bookstack {
|
||||||
# rewrite ^__PATH__/(.*)$ __PATH__/index.php?/$1 last;
|
rewrite ^__PATH__/(.*)$ __PATH__/index.php?/$1 last;
|
||||||
#}
|
}
|
||||||
|
|
|
@ -419,12 +419,12 @@ chdir = __FINALPATH__
|
||||||
;php_admin_value[memory_limit] = 32M
|
;php_admin_value[memory_limit] = 32M
|
||||||
|
|
||||||
; Common values to change to increase file upload limit
|
; Common values to change to increase file upload limit
|
||||||
; php_admin_value[upload_max_filesize] = 50M
|
php_admin_value[upload_max_filesize] = 50M
|
||||||
; php_admin_value[post_max_size] = 50M
|
php_admin_value[post_max_size] = 50M
|
||||||
; php_admin_flag[mail.add_x_header] = Off
|
; php_admin_flag[mail.add_x_header] = Off
|
||||||
|
|
||||||
; Other common parameters
|
; Other common parameters
|
||||||
; php_admin_value[max_execution_time] = 600
|
; php_admin_value[max_execution_time] = 600
|
||||||
; php_admin_value[max_input_time] = 300
|
; php_admin_value[max_input_time] = 300
|
||||||
; php_admin_value[memory_limit] = 256M
|
php_admin_value[memory_limit] = 256M
|
||||||
; php_admin_flag[short_open_tag] = On
|
; php_admin_flag[short_open_tag] = On
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
"en": "Choose a path for BookStack",
|
"en": "Choose a path for BookStack",
|
||||||
"fr": "Choisissez un chemin pour BookStack"
|
"fr": "Choisissez un chemin pour BookStack"
|
||||||
},
|
},
|
||||||
"example": "/",
|
"example": "/bookstack",
|
||||||
"default": "/"
|
"default": "/bookstack"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "language",
|
"name": "language",
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
"en": "Choose the application language",
|
"en": "Choose the application language",
|
||||||
"fr": "Choisissez la langue de l'application"
|
"fr": "Choisissez la langue de l'application"
|
||||||
},
|
},
|
||||||
"choices": ["de", "en", "es", "fr", "it", "pt"],
|
"choices": ["de", "en", "es", "fr", "it", "nl"],
|
||||||
"default": "en"
|
"default": "en"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@ ynh_abort_if_errors
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url="/"
|
path_url=$YNH_APP_ARG_PATH
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
language=$YNH_APP_ARG_LANGUAGE
|
language=$YNH_APP_ARG_LANGUAGE
|
||||||
|
|
||||||
|
@ -109,6 +109,7 @@ ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --targ
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/.env"
|
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/.env"
|
||||||
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$final_path/.env"
|
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$final_path/.env"
|
||||||
ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/.env"
|
ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/.env"
|
||||||
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/.env"
|
||||||
|
|
||||||
ynh_store_file_checksum $final_path/.env
|
ynh_store_file_checksum $final_path/.env
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,24 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
||||||
# Create a dedicated PHP-FPM config
|
# Create a dedicated PHP-FPM config
|
||||||
ynh_add_fpm_config --package="$extra_php_dependencies"
|
ynh_add_fpm_config --package="$extra_php_dependencies"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# INSTALL AND INITIALIZE COMPOSER
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Installing Composer..." --weight=10
|
||||||
|
|
||||||
|
# Install Composer
|
||||||
|
ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_args="--no-dev"
|
||||||
|
|
||||||
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
|
then
|
||||||
|
ynh_script_progression --message="Upgrading source files..." --weight=4
|
||||||
|
pushd $final_path
|
||||||
|
php$phpversion artisan migrate
|
||||||
|
php$phpversion artisan cache:clear
|
||||||
|
php$phpversion artisan view:clear
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue