mirror of
https://github.com/YunoHost-Apps/bookstack_ynh.git
synced 2024-09-03 18:16:02 +02:00
Fix
This commit is contained in:
parent
34cc24cf73
commit
68174b3f32
3 changed files with 8 additions and 9 deletions
|
@ -10,10 +10,9 @@ location __PATH__/ {
|
||||||
}
|
}
|
||||||
|
|
||||||
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 +27,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;
|
||||||
#}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue