1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bookstack_ynh.git synced 2024-09-03 18:16:02 +02:00
This commit is contained in:
ericgaspar 2021-01-29 12:04:15 +01:00
parent 34cc24cf73
commit 68174b3f32
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 8 additions and 9 deletions

View file

@ -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;
#} }

View file

@ -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",

View file

@ -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