|
@@ -1,15 +1,34 @@
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
|
+
|
|
|
|
|
+root __FINALPATH__/ ;
|
|
|
|
|
+
|
|
|
|
|
+rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last;
|
|
|
|
|
+rewrite ^/([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$1$2.jpg last;
|
|
|
|
|
+rewrite ^/([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3.jpg last;
|
|
|
|
|
+rewrite ^/([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4.jpg last;
|
|
|
|
|
+rewrite ^/([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg last;
|
|
|
|
|
+rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg last;
|
|
|
|
|
+rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg last;
|
|
|
|
|
+rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg last;
|
|
|
|
|
+rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg last;
|
|
|
|
|
+rewrite ^/c/([0-9]+)(-[_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2.jpg last;
|
|
|
|
|
+rewrite ^/c/([a-zA-Z-]+)(-[0-9]+)?/.+\.jpg$ /img/c/$1.jpg last;
|
|
|
|
|
+rewrite ^/([0-9]+)(-[_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2.jpg last;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
location __PATH__/ {
|
|
location __PATH__/ {
|
|
|
|
|
|
|
|
# Path to source
|
|
# Path to source
|
|
|
- alias __FINALPATH__/ ;
|
|
|
|
|
|
|
+ # alias __FINALPATH__/ ;
|
|
|
|
|
|
|
|
index index.php;
|
|
index index.php;
|
|
|
|
|
|
|
|
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
|
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
|
|
client_max_body_size 300M;
|
|
client_max_body_size 300M;
|
|
|
|
|
|
|
|
- try_files $uri $uri/ index.php;
|
|
|
|
|
|
|
+ # try_files $uri $uri/ index.php;
|
|
|
|
|
+ try_files $uri $uri/ /index.php?$args;
|
|
|
|
|
+
|
|
|
location ~ [^/]\.php(/|$) {
|
|
location ~ [^/]\.php(/|$) {
|
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
|
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
|
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
|
@@ -22,10 +41,10 @@ location __PATH__/ {
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
|
fastcgi_param REMOTE_USER $remote_user;
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
# Include SSOWAT user panel.
|
|
# Include SSOWAT user panel.
|
|
|
- include conf.d/yunohost_panel.conf.inc;
|
|
|
|
|
|
|
+ # include conf.d/yunohost_panel.conf.inc;
|
|
|
}
|
|
}
|