Compare commits

..

No commits in common. "d4d559d518ac95276403066e5da66811242ccf47" and "9a4639b1d0b19d1648c1d1a251f0fb06d4217265" have entirely different histories.

View file

@ -1,33 +1,31 @@
server { location / {
listen 80; alias __INSTALL_DIR__/public/;
server_name __DOMAIN_NAME__; # try redirecting stuff to index.php
root /example.com/public; rewrite ^(.*)$ /index.php$1 last;
add_header X-Frame-Options "SAMEORIGIN"; index index.php;
add_header X-XSS-Protection "1; mode=block"; client_max_body_size 256M;
add_header X-Content-Type-Options "nosniff";
index index.html index.htm index.php; #Laravel: append $query_string
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string; try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; } location ~ [^/]\.php(/|$) {
location = /robots.txt { access_log off; log_not_found off; } fastcgi_split_path_info ^(.+\.php)(/.+)$;
#fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm-__APP__.sock;
fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm.sock;
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php__PHP_VERSION__-fpm.sock;
fastcgi_index index.php; fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params; include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass_header Authorization;
} }
location ~ /\.(?!well-known).* { # Include SSOWAT user panel.
deny all; include conf.d/yunohost_panel.conf.inc;
} }
# not tested; it may have trouble redirecting
location /api/ {
alias __INSTALL_DIR__/public/;
try_files $uri $uri/ /api/index.php?$query_string;
} }