my_idlers_ynh/conf/nginx.conf

31 lines
836 B
Nginx Configuration File

# I'm unable to get it to work in a subdir; disable for now
#rewrite ^/__PATH__$ /__PATH__/ permanent;
location / {
#alias /var/www/__APP__/public/;
alias __INSTALL_DIR__/public/;
index index.php;
client_max_body_size 256M;
#Laravel: append $query_string
try_files $uri $uri/ /index.php?$query_string;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm-__APP__.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass_header Authorization;
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
location /api/ {
try_files $uri $uri/ /api/index.php?$query_string;
}