2024-04-07 17:54:35 +02:00
|
|
|
location __PATH__/cache {
|
2017-02-01 20:46:17 +01:00
|
|
|
rewrite ^(.*)$ /error break;
|
2020-11-02 12:24:37 +01:00
|
|
|
}
|
2017-01-18 11:22:49 +01:00
|
|
|
|
2024-04-07 17:54:35 +02:00
|
|
|
location __PATH__/content {
|
2017-01-18 11:22:49 +01:00
|
|
|
rewrite ^(.*)$ /error break;
|
2020-11-02 12:24:37 +01:00
|
|
|
}
|
2017-01-18 11:22:49 +01:00
|
|
|
|
2024-04-07 17:54:35 +02:00
|
|
|
location __PATH__/system {
|
2017-01-18 11:22:49 +01:00
|
|
|
rewrite ^(.*)$ /error break;
|
2020-11-02 12:24:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
2024-04-07 17:54:35 +02:00
|
|
|
location __PATH__/ {
|
2020-11-02 12:24:37 +01:00
|
|
|
|
2023-09-23 15:39:44 +02:00
|
|
|
alias __INSTALL_DIR__/ ;
|
2020-11-02 12:24:37 +01:00
|
|
|
|
|
|
|
index yellow.php;
|
|
|
|
|
|
|
|
if (!-e $request_filename) {
|
2024-02-27 09:13:26 +01:00
|
|
|
rewrite ^(.*)$ ^__PATH__/yellow.php last;
|
2020-11-02 12:24:37 +01:00
|
|
|
break;
|
2017-01-18 11:22:49 +01:00
|
|
|
}
|
2017-02-01 20:46:17 +01:00
|
|
|
|
2020-11-02 12:24:37 +01:00
|
|
|
try_files $uri $uri/ yellow.php;
|
|
|
|
location ~ [^/]\.php(/|$) {
|
2017-02-01 20:46:17 +01:00
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
2020-11-02 12:24:37 +01:00
|
|
|
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
2017-02-01 20:46:17 +01:00
|
|
|
fastcgi_index yellow.php;
|
|
|
|
include fastcgi_params;
|
2020-11-02 12:24:37 +01:00
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
2017-02-01 20:47:45 +01:00
|
|
|
}
|
2020-11-02 12:24:37 +01:00
|
|
|
|
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2017-01-18 11:22:49 +01:00
|
|
|
}
|