-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathnginx.conf
36 lines (30 loc) · 936 Bytes
/
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
events {
worker_connections 1024; #default
}
http {
server {
listen 8081;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location /dashboard {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://localhost:4040;
proxy_ssl_session_reuse off;
proxy_set_header Host $http_host;
proxy_redirect off;
}
location /parse {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
keepalive_requests 10;
keepalive_timeout 75s;
proxy_pass http://localhost:1337;
proxy_http_version 1.1;
}
}
}