-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathnginx.conf
More file actions
42 lines (33 loc) · 775 Bytes
/
nginx.conf
File metadata and controls
42 lines (33 loc) · 775 Bytes
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
events {
worker_connections 1024;
}
http {
repsheet on;
repsheet_redis_host localhost;
repsheet_redis_port 6379;
repsheet_redis_connection_timeout 5;
repsheet_redis_read_timeout 10;
repsheet_proxy_headers on;
repsheet_proxy_headers_header "X-Forwarded-For";
repsheet_proxy_headers_fallback on;
upstream app {
server localhost:4567;
}
server {
listen 8888;
location / {
}
location /real {
repsheet_proxy_headers_header "True-Client-IP";
proxy_pass http://127.0.0.1:8888/;
}
location /app {
proxy_pass http://app;
}
location /nofallback {
repsheet_proxy_headers_header "True-Client-IP";
repsheet_proxy_headers_fallback off;
proxy_pass http://127.0.0.1:8888/;
}
}
}