forked from chaoss/grimoirelab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf.template
38 lines (31 loc) · 887 Bytes
/
nginx.conf.template
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
upstream sortinghat {
server sortinghat:9314;
}
server {
include mime.types;
sendfile on;
listen 8000;
server_name localhost nginx;
location / {
proxy_pass ${KIBANA_HOST};
proxy_redirect ${KIBANA_HOST} /;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location /identities {
rewrite ^/identities/(.*) /$1 break;
include /etc/nginx/uwsgi_params;
uwsgi_pass sortinghat;
uwsgi_param Host $host;
uwsgi_param X-Real-IP $remote_addr;
uwsgi_param X-Forwarded-For $proxy_add_x_forwarded_for;
uwsgi_param X-Forwarded-Proto $http_x_forwarded_proto;
}
location ~ ^/identities/(css|js|fonts)/ {
rewrite ^/identities/(.*) /$1 break;
root /sortinghat;
}
}