forked from Hasnayeen/invobook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.conf
52 lines (40 loc) · 1.33 KB
/
site.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
41
42
43
44
45
46
47
48
49
50
51
52
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name goodworkfor.life www.goodworkfor.life;
client_max_body_size 108M;
client_body_buffer_size 128k;
server_tokens off;
ssl_certificate /etc/ssl/certs/goodworkfor.life.crt;
ssl_certificate_key /etc/ssl/certs/goodworkfor.life.key;
access_log off;
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;
}
}