forked from tmdoit-zz/docker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
processmaker.conf
73 lines (58 loc) · 2.43 KB
/
processmaker.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ProcessMaker HTTP Virtual Host
server {
listen 80 default_server;
listen [::]:80;
server_name ~^.*$;
root /opt/processmaker/workflow/public_html; #where ProcessMaker is installed
index index.html index.htm app.php index.php;
try_files $uri $uri/ /index.php?$args;
charset utf-8;
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; }
access_log /var/log/nginx/pm-access.log combined; #enables access logs
error_log /var/log/nginx/pm-error.log error; #enables error logs
sendfile off;
client_max_body_size 100m;
# Every PHP script must be routed to PHP-FPM
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm/processmaker.sock;
fastcgi_index app.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /opt/processmaker/workflow/public_html/app.php;
fastcgi_intercept_errors on;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
}
#Browser Caching
location ~* \.(ico|css|js|gif|jpeg|jpg|png|woff|ttf|otf|svg|woff2|eot)$ {
expires 24h;
add_header Cache-Control public;
access_log off;
log_not_found off;
fastcgi_pass unix:/var/run/php-fpm/processmaker.sock;
fastcgi_index app.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /opt/processmaker/workflow/public_html/app.php;
fastcgi_intercept_errors on;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
}
location ~ /\.ht {
deny all;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}