forked from Hasnayeen/invobook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.dev.conf
40 lines (32 loc) · 1.09 KB
/
site.dev.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
server {
listen 80 default;
client_max_body_size 108M;
client_body_buffer_size 128k;
server_tokens off;
access_log /var/log/nginx/goodwork.access.log;
error_log /var/log/nginx/goodwork.error.log;
gzip on;
gzip_comp_level 2;
gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/javascript application/javascript application/x-javascript text/xml text/css application/xml;
root /var/www/public;
index index.php;
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
access_log off;
log_not_found off;
expires 360d;
}
location ~ \.php$ {
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/goodwork-php.log";
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
include fastcgi_params;
}
}