-
Notifications
You must be signed in to change notification settings - Fork 2
/
kubikvest.conf
31 lines (27 loc) · 1007 Bytes
/
kubikvest.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
upstream kubikvest {
server localhost:8300 fail_timeout=1s;
}
upstream kubikvestwebhook {
server localhost:8301 fail_timeout=1s;
}
server {
listen 80;
server_name api.kubikvest.xyz;
keepalive_timeout 0;
location / {
proxy_pass http://kubikvest/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
log_format log_kubikvest '$remote_addr - $remote_user [$time_local] $host $server_addr $request '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" $request_time-$upstream_response_time';
access_log /var/log/nginx/kubikvest.log log_kubikvest;
}
location /webhook {
client_body_in_file_only on;
client_body_temp_path /var/spool/nginx/client_temp 1 2;
proxy_pass http://kubikvestwebhook/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
}
}