-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.conf
39 lines (33 loc) · 1.08 KB
/
default.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
server {
listen 80;
root /usr/share/nginx/html;
location ~ ^/$ {
index index;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param ACCESS_TOKEN $arg_access_token;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/index.sh;
}
location /add {
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param REQUEST_BODY $request_body;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/add.sh;
}
location /remove {
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param REQUEST_BODY $request_body;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/remove.sh;
}
location /check {
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param REQUEST_BODY $request_body;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/check.sh;
}
location /cleanup {
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/cleanup.sh;
}
location /metrics {
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/metrics.sh;
}
}