forked from serengil/deepface
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnginx.conf
99 lines (88 loc) · 2.83 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
server {
listen 443 default_server ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /nginx/server_crt_file.crt;
ssl_certificate_key /nginx/server_crt_file.key;
keepalive_timeout 7;
location / {
deny all;
proxy_pass http://$SERVER_A_ADDR:$A_PORT;
}
location /v1w/face-auth/emotions {
proxy_set_header X-Queued-Time $${q}msec;
proxy_pass http://$SERVER_A_ADDR:$A_PORT/v1w/face-auth/emotions;
}
location /v1w/face-auth/liveness {
proxy_set_header X-Queued-Time $${q}msec;
proxy_pass http://$SERVER_A_ADDR:$A_PORT/v1w/face-auth/liveness;
}
location = /v1w/face-auth/ {
limit_except DELETE OPTIONS {
deny all;
}
proxy_set_header X-Queued-Time $${q}msec;
proxy_pass http://$SERVER_A_ADDR:$A_PORT/v1w/face-auth/;
proxy_pass_request_headers on;
}
location /v1r/face-auth/status {
proxy_set_header X-Queued-Time $${q}msec;
proxy_pass http://$SERVER_B_ADDR:$B_PORT/v1r/face-auth/status;
}
location /v1w/face-auth/primary_photo {
proxy_set_header X-Queued-Time $${q}msec;
proxy_pass http://$SERVER_B_ADDR:$B_PORT/v1w/face-auth/primary_photo;
}
location /v1w/face-auth/primary_photo/review_duplicates {
proxy_set_header X-Queued-Time $${q}msec;
proxy_pass http://$SERVER_B_ADDR:$B_PORT/v1w/face-auth/primary_photo/review_duplicates;
}
location /v1w/face-auth/enable {
proxy_set_header X-Queued-Time $${q}msec;
proxy_pass http://$SERVER_B_ADDR:$B_PORT/v1w/face-auth/enable;
}
location /liveness-metrics {
proxy_pass http://$SERVER_A_ADDR:$A_PORT/metrics;
}
location /recognition-metrics {
proxy_pass http://$SERVER_B_ADDR:$B_PORT/metrics;
}
location /minio-metrics {
proxy_pass http://$SERVER_B_ADDR:9000/minio/v2/metrics/cluster;
}
location /milvus-metrics {
auth_basic "metrics";
auth_basic_user_file /.metrics.htpasswd;
proxy_pass http://$SERVER_B_ADDR:9091/metrics;
}
location /etcd-metrics {
auth_basic "metrics";
auth_basic_user_file /.metrics.htpasswd;
proxy_pass http://$SERVER_B_ADDR:2379/metrics;
}
location /b-metrics {
proxy_pass http://$SERVER_B_ADDR:9100/metrics;
}
location /a-metrics {
proxy_pass http://$SERVER_A_ADDR:9100/metrics;
}
location /liveness-health {
proxy_pass http://$SERVER_A_ADDR:$A_PORT/health-check;
}
location /recognition-health {
proxy_pass http://$SERVER_B_ADDR:$B_PORT/health-check;
}
location /webhook {
proxy_pass $WEBHOOK_ADDR;
allow $WEBHOOK_ALLOW_SRC;
proxy_ssl_server_name on;
proxy_pass_request_headers on;
deny all;
}
location /webhook-migrate-phone-number-to-email {
proxy_pass $WEBHOOK_MIGRATE_PHONE_NUMBER_TO_EMAIL_ADDR;
allow $WEBHOOK_MIGRATE_PHONE_NUMBER_TO_EMAIL_ALLOW_SRC;
proxy_ssl_server_name on;
proxy_pass_request_headers on;
deny all;
}
}