1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

Fix trailing slash to admin

Fixes #76
This commit is contained in:
tituspijean 2018-07-23 21:17:10 +02:00
parent 808760abb0
commit 1b07f3cb73
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
;; Nom du test
;; flarum_ynh package check
# Commentaire ignoré
# ; pre-install
# echo -n "Here your commands to execute in the container"
@ -8,7 +8,7 @@
path="/path" (PATH)
admin="john" (USER)
title="Test flarum"
# language="en"
language="en"
is_public=1 (PUBLIC|public=1|private=0)
; Checks
pkg_linter=1
@ -18,7 +18,7 @@
setup_private=1
setup_public=1
upgrade=1
upgrade=1 from_commit=d059d5e8439fed02e86b355518351b9dcd43e6d8
upgrade=1 from_commit=9c02e9953994b9c99c199346c839209d07e88626
backup_restore=1
multi_instance=1
incorrect_path=1

View file

@ -10,8 +10,8 @@ location ^~ __PATH__ {
# Bug in Nginx with locations and aliases (see http://stackoverflow.com/a/35102259 )
location __LOCATION_HACK__/ { try_files $uri $uri/ __PATH_HACK__/index.php?$query_string; }
location __LOCATION_HACK__/api/ { try_files $uri $uri/ __PATH_HACK__/api.php?$query_string; }
location __LOCATION_HACK__/admin/ { try_files $uri $uri/ __PATH_HACK__/admin.php?$query_string; }
location __LOCATION_HACK__/api { try_files $uri $uri/ __PATH_HACK__/api.php?$query_string; }
location __LOCATION_HACK__/admin { try_files $uri $uri/ __PATH_HACK__/admin.php?$query_string; }
location __LOCATION_HACK__/flarum/ {
deny all;