This commit is contained in:
ericgaspar 2021-08-14 22:07:19 +02:00
parent a98941aa95
commit 40af375983
No known key found for this signature in database
GPG Key ID: 574F281483054D44
3 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,5 @@
location / {
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
# Path to source
alias __FINALPATH__/;
@ -12,7 +13,8 @@ location / {
#client_max_body_size 50M;
try_files $uri $uri/ index.php;
try_files $uri $uri/ __PATH__/__PATH__/index.php?$query_string;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;

View File

@ -36,6 +36,12 @@
"type": "domain",
"example": "domain.org"
},
{
"name": "path",
"type": "path",
"example": "/easyappointments",
"default": "/easyappointments"
},
{
"name": "is_public",
"type": "boolean",

View File

@ -21,7 +21,7 @@ ynh_abort_if_errors
#=================================================
domain=$YNH_APP_ARG_DOMAIN
path_url="/"
path_url=$YNH_APP_ARG_PATH
language=$YNH_APP_ARG_LANGUAGE
is_public=$YNH_APP_ARG_IS_PUBLIC