-
Notifications
You must be signed in to change notification settings - Fork 145
/
Copy pathnginx.conf
51 lines (39 loc) · 1.13 KB
/
nginx.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
worker_processes 1;
pid /var/run/nginx.pid;
user nginx nginx;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
server_name tasmoadmin.local;
listen 80 default_server;
root /var/www/tasmoadmin/;
fastcgi_buffer_size 512k;
fastcgi_buffers 16 512k;
location / {
try_files $uri /index.php$is_args$args;
}
location /data/firmwares {
add_header Access-Control-Allow-Origin *;
}
location /data/tasmoadmin/ {
deny all;
}
location ~ ^(.*)\.(css|js|gif||jpe?g|png|json|cache\.json)$ {
}
location ~ ^/index\.php(/|$) {
fastcgi_pass 127.0.0.1:9001;
fastcgi_read_timeout 900;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
internal;
}
}
}