-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
35 lines (29 loc) · 900 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
server {
listen 8080;
server_name gateway;
gzip on;
location /api/ {
# Policy configuration here (authentication, rate limiting, logging...)
#
# access_log /var/log/nginx/warehouse_api.log main;
# URI routing
#
location /api/autocomplete/ {
proxy_pass http://localhost:8888/;
}
location /api/inv-idx/ {
proxy_pass http://localhost:8081/;
# auth_basic "Inverted Index Area";
# auth_basic_user_file /opt/homebrew/etc/nginx/.htpasswdfile;
}
location /api/ai-search/ {
proxy_pass http://localhost:8889/;
# auth_basic "AI Area";
# auth_basic_user_file /opt/homebrew/etc/nginx/.htpasswdfile;
}
return 404; # Catch-all
}
location / {
proxy_pass http://localhost:8890/;
}
}