init
This commit is contained in:
commit
f0d13cd510
29 files changed
+6868
No files matched your search
@@ -0,0 +1,63 @@
|
||||
server {
|
||||
listen 3000;
|
||||
server_name localhost;
|
||||
root /var/www/html/public; # Đây là thư mục public của Laravel
|
||||
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
add_header X-Content-Type-Options "nosniff";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
charset utf-8;
|
||||
|
||||
#access_log /dev/stdout;
|
||||
#error_log /dev/stdout;
|
||||
|
||||
location ~\.(yml|env|example|log|prod|dev|local|production)$ {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
location ~* \.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|mp4|vtt)$ {
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
expires 30d;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location = /favicon.ico { access_log off; log_not_found off; }
|
||||
location = /robots.txt { access_log off; log_not_found off; }
|
||||
|
||||
error_page 404 /index.php;
|
||||
|
||||
location ~ "^(.+\.php)($|/)" {
|
||||
|
||||
index index.php index.html index.htm admin.php;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
include fastcgi_params;
|
||||
fastcgi_param HTTPS off;
|
||||
send_timeout 120;
|
||||
fastcgi_read_timeout 120;
|
||||
client_max_body_size 20m;
|
||||
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_param REQUEST_METHOD $request_method;
|
||||
fastcgi_param CONTENT_TYPE $content_type;
|
||||
fastcgi_param CONTENT_LENGTH $content_length;
|
||||
fastcgi_param SERVER_ADDR $server_addr;
|
||||
fastcgi_param SERVER_PORT $server_port;
|
||||
fastcgi_param SERVER_NAME $server_name;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
|
||||
location ~ /\.(?!well-known).* {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user