-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.template.conf
58 lines (51 loc) · 1.45 KB
/
default.template.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
server {
index app.php;
server_name rating;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /site/public;
location / {
try_files $uri /app.php$is_args$args;
}
location ~ ^/app\.php(/|$) {
fastcgi_pass php:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "allow_url_fopen = 0";
fastcgi_read_timeout 1800;
fastcgi_intercept_errors on;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT $realpath_root;
internal;
}
}
server {
server_name api;
source_charset utf-8;
client_max_body_size 200M;
index index.php;
root /api/public;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location / {
try_files $uri /index.php$is_args$args;
}
location ~ ^/index\.php(/|$) {
fastcgi_pass php-api:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "allow_url_fopen = 0";
fastcgi_read_timeout 1800;
fastcgi_intercept_errors on;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT $realpath_root;
internal;
}
}