Repository navigation
Expand file tree
/
Copy pathdefault.conf
More file actions
70 lines (55 loc) · 1.57 KB
/
Copy pathdefault.conf
File metadata and controls
70 lines (55 loc) · 1.57 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
ssl_session_cache shared:SSL:2m;
ssl_session_timeout 5m;
client_max_body_size 0;
server {
listen 80;
server_name _;
location /login {
if ($request_method = OPTIONS ) {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, HEAD';
add_header 'Access-Control-Allow-Headers' 'Authorization, Origin, X-Requested-With, Content-Type, Accept';
return 200;
}
proxy_pass_request_headers on;
proxy_set_header Host $host;
proxy_pass http://interauthorizer:5001;
}
location /indexer {
proxy_pass_request_headers on;
proxy_set_header Host $host;
add_header Access-Control-Allow-Origin *;
proxy_pass http://interplaneindexer:8080;
}
# location /ws {
# proxy_pass http://mosquitto:8080/;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "Upgrade";
# proxy_set_header Host $host;
# }
location /planeframe {
proxy_pass_request_headers on;
proxy_set_header Host $host;
add_header Access-Control-Allow-Origin *;
proxy_pass http://interherder:8080;
}
location /device {
proxy_pass_request_headers on;
proxy_set_header Host $host;
proxy_pass http://interdevice:8080;
}
location = /health {
access_log off;
add_header 'Content-Type' 'application/json';
return 200 '{"status":"UP"}';
}
}
server {
listen 6000;
server_name _;
http2 on;
location /authorizer.AuthorizerService {
grpc_pass grpc://interauthorizer:6000;
}
}