2025-03-01 16:18:38 +01:00
|
|
|
# try redirecting stuff to index.php
|
|
|
|
rewrite ^(.*)$ /index.php$1 last;
|
|
|
|
|
2014-10-20 18:55:53 +02:00
|
|
|
|
2025-03-01 09:17:43 +01:00
|
|
|
location / {
|
|
|
|
alias __INSTALL_DIR__/public/;
|
2017-06-02 17:49:54 +02:00
|
|
|
|
2014-10-20 18:55:53 +02:00
|
|
|
index index.php;
|
2025-02-27 08:15:10 +01:00
|
|
|
client_max_body_size 256M;
|
2025-02-25 14:30:31 +01:00
|
|
|
|
2025-03-01 09:17:43 +01:00
|
|
|
#Laravel: append $query_string
|
|
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
|
|
|
2025-02-27 08:15:10 +01:00
|
|
|
location ~ [^/]\.php(/|$) {
|
2025-03-01 09:17:43 +01:00
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
2025-03-01 13:31:03 +01:00
|
|
|
#fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm-__APP__.sock;
|
|
|
|
fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm.sock;
|
2017-06-02 17:49:54 +02:00
|
|
|
|
2014-10-20 18:55:53 +02:00
|
|
|
fastcgi_index index.php;
|
|
|
|
include fastcgi_params;
|
2025-03-01 09:17:43 +01:00
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
2025-02-27 08:15:10 +01:00
|
|
|
fastcgi_pass_header Authorization;
|
2014-10-20 18:55:53 +02:00
|
|
|
}
|
2025-02-27 08:15:10 +01:00
|
|
|
|
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2014-10-20 18:55:53 +02:00
|
|
|
}
|
2025-03-01 17:42:29 +01:00
|
|
|
# not tested; it may have trouble redirecting
|
2025-03-01 09:17:43 +01:00
|
|
|
location /api/ {
|
|
|
|
try_files $uri $uri/ /api/index.php?$query_string;
|
|
|
|
}
|