1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/abantecart_ynh.git synced 2024-09-03 18:06:16 +02:00
This commit is contained in:
frju365 2019-06-23 20:18:21 +02:00
parent 0a7f817c8f
commit d9d0e51830
No known key found for this signature in database
GPG key ID: C892BE847FF5635A
3 changed files with 6 additions and 12 deletions

View file

@ -3,7 +3,7 @@ location __PATH__/ {
alias __FINALPATH__/; alias __FINALPATH__/;
# Default indexes and catch-all # Default indexes and catch-all
index index.html index.php; index index.php;
try_files $uri $uri/ __PATH__/index.php?$args; try_files $uri $uri/ __PATH__/index.php?$args;
# Prevent useless logs # Prevent useless logs
@ -32,12 +32,6 @@ location __PATH__/ {
try_files $hidpi_uri $uri =404; try_files $hidpi_uri $uri =404;
} }
location ~ __PATH__/ {
if (!-e $request_filename){
rewrite ^/(.*)\?*$ __PATH__/index.php?_route_=$1 last;
}
}
location ~* __PATH__/\.(jpg|jpeg|png|gif|css|js|ico)$ { location ~* __PATH__/\.(jpg|jpeg|png|gif|css|js|ico)$ {
expires max; expires max;
log_not_found off; log_not_found off;

View file

@ -65,7 +65,7 @@
"name": "admin_pass", "name": "admin_pass",
"type": "password", "type": "password",
"ask": { "ask": {
"en": "Set the password for the Admin user ≥ 5 character (without special caracters)", "en": "Set the password for the Admin user ≥ 8 character (without special caracters)",
"fr": "Définissez le mot de passe pour l'Administrateur. ≥ cinq charactères" "fr": "Définissez le mot de passe pour l'Administrateur. ≥ cinq charactères"
}, },
"example": "myreallystrengthpassword" "example": "myreallystrengthpassword"

View file

@ -48,14 +48,14 @@ ynh_webpath_register $app $domain $path_url
# INSTALL DEPENDENCIES # INSTALL DEPENDENCIES
#================================================= #=================================================
ynh_install_app_dependencies php-mysql ynh_install_app_dependencies php-mysql php-zip php-gd
#================================================= #=================================================
# Check password strength # Check password strength
#================================================= #=================================================
[[ ${#admin_pass} -gt 5 ]] || ynh_die \ [[ ${#admin_pass} -gt 8 ]] || ynh_die \
"The password is too weak, it must be longer than 5 characters" "The password is too weak, it must be longer than 8 characters"
#================================================= #=================================================
# STORE SETTINGS FROM MANIFEST # STORE SETTINGS FROM MANIFEST
@ -127,7 +127,7 @@ php cli_install.php install \
--email=$admin_email \ --email=$admin_email \
--http_server=https://$domain$path_url \ --http_server=https://$domain$path_url \
--db_prefix=_ac_ \ --db_prefix=_ac_ \
--admin_path=admin --admin_path=ab_admin
popd popd
#================================================= #=================================================