1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/quizzes_ynh.git synced 2024-09-03 20:16:11 +02:00

Merge pull request #2 from YunoHost-Apps/path

Sub_path
This commit is contained in:
Éric Gaspar 2021-08-28 07:37:03 +02:00 committed by GitHub
commit 7133fea791
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 12 deletions

View file

@ -7,7 +7,7 @@
password="1Strong-Password"
; Checks
pkg_linter=1
setup_sub_dir=1
setup_sub_dir=0
setup_root=1
setup_nourl=0
setup_private=1

View file

@ -1,5 +1,4 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
location / {
# Path to source
alias __FINALPATH__/web/;
@ -14,9 +13,9 @@ location __PATH__/ {
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
#client_max_body_size 50M;
try_files $uri $uri/ __PATH__/__PATH__/index.php?$query_string;
#try_files $uri $uri/ __PATH__/__PATH__/index.php?$query_string;
#try_files $uri $uri/ index.php;
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;

View file

@ -33,12 +33,6 @@
"type": "domain",
"example": "example.com"
},
{
"name": "path",
"type": "path",
"example": "/quizzes",
"default": "/quizzes"
},
{
"name": "is_public",
"type": "boolean",

View file

@ -25,7 +25,7 @@ ynh_abort_if_errors
#=================================================
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
path_url="/"
is_public=$YNH_APP_ARG_IS_PUBLIC
app=$YNH_APP_INSTANCE_NAME