-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnginx.conf
53 lines (40 loc) · 1.18 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
server {
listen 80;
listen 443 ssl;
ssl_certificate /ui-cert/gtas.crt;
ssl_certificate_key /ui-key/gtas.key;
if ($http_router = "api") {
rewrite ^(.*)$ /api$1 break;
}
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
location /api {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
# set client body size to 4M #
client_max_body_size 4M;
rewrite ^/api/(.*) /$1 break;
proxy_pass https://web-app:8443;
}
location /db/data {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_pass https://neo4j:7473/db/data;
}
location ~ (/neo4j) {
rewrite ^ ${REACT_APP_NEO4J_BROWSER} permanent;
}
location /kibana {
rewrite ^ ${REACT_APP_KIBANA_LOGIN} permanent;
}
include /etc/nginx/extra-conf.d/*.conf;
}