WIP Laravel

This commit is contained in:
Andras Bacsai
2022-04-28 16:31:46 +02:00
parent caaf030517
commit f8f17832de
2 changed files with 21 additions and 12 deletions

View File

@@ -184,7 +184,7 @@ export async function copyBaseConfigurationFiles(
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name localhost;
@@ -237,21 +237,22 @@ export async function copyBaseConfigurationFiles(
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name localhost;
server_name _;
disable_symlinks off;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
root /app/public;
index index.html index.htm index.php;
charset utf-8;
location / {
root /app/public;
try_files $uri $uri/ /index.php?$query_string;
}
@@ -260,7 +261,11 @@ export async function copyBaseConfigurationFiles(
error_page 404 /index.php;
location ~ \.php$ {
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;