2020-06-11 13:42:25 +02:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
2020-06-12 05:45:54 +02:00
|
|
|
location __PATH__/ {
|
2019-06-23 01:20:28 +02:00
|
|
|
|
2020-06-11 13:42:25 +02:00
|
|
|
# Path to source
|
2023-03-13 09:45:53 +01:00
|
|
|
alias __INSTALL_DIR__/public/;
|
2019-06-23 01:20:28 +02:00
|
|
|
|
2020-06-11 13:42:25 +02:00
|
|
|
index index.php;
|
2020-06-12 19:09:17 +02:00
|
|
|
if (!-e $request_filename)
|
|
|
|
{
|
|
|
|
rewrite ^__PATH__/(.+)$ __PATH__/index.php?q=$1 last;
|
|
|
|
}
|
2020-06-11 13:42:25 +02:00
|
|
|
|
|
|
|
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
2022-12-27 12:01:23 +01:00
|
|
|
client_max_body_size 50M;
|
2020-06-11 13:42:25 +02:00
|
|
|
|
2020-06-12 19:09:17 +02:00
|
|
|
try_files $uri $uri/ index.php;
|
|
|
|
location ~ '[^/]\.php$|^/update.php' {
|
2018-06-17 00:50:26 +02:00
|
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
2020-06-11 00:45:03 +02:00
|
|
|
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
2020-11-19 10:11:49 +01:00
|
|
|
|
2020-06-11 23:18:52 +02:00
|
|
|
fastcgi_index index.php;
|
2018-06-17 00:50:26 +02:00
|
|
|
include fastcgi_params;
|
2022-07-19 02:18:21 +02:00
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
2020-02-23 19:29:22 +01:00
|
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
2018-06-17 00:50:26 +02:00
|
|
|
}
|
2020-11-19 10:11:49 +01:00
|
|
|
|
2021-07-23 13:34:55 +02:00
|
|
|
# Include SSOWAT user panel.
|
2020-02-22 01:28:06 +01:00
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2018-06-17 00:50:26 +02:00
|
|
|
}
|
|
|
|
|
2020-06-12 19:09:17 +02:00
|
|
|
location @rewrite {
|
2020-11-19 10:11:49 +01:00
|
|
|
rewrite ^__PATH__/(.*)$ __PATH__/index.php?q=$1;
|
2018-06-17 06:32:42 +02:00
|
|
|
}
|