0
|
1 apiVersion: v1
|
|
2 kind: ConfigMap
|
|
3 metadata:
|
|
4 name: light-bridge-nginx-conf
|
|
5 data:
|
|
6 nginx.conf: |
|
|
7 error_log /dev/stderr;
|
|
8 pid /dev/null;
|
|
9 events {
|
28
|
10 worker_connections 256;
|
0
|
11 }
|
|
12 http {
|
|
13 log_format main '[$time_local] code=$status bytes_sent=$bytes_sent req="$request"';
|
|
14 proxy_headers_hash_bucket_size 128;
|
|
15 proxy_buffering off;
|
|
16 server {
|
|
17 access_log off;
|
|
18
|
|
19 location = /metrics {
|
|
20 proxy_pass http://127.0.0.1:8001/metrics;
|
|
21 }
|
|
22 location = /light-bridge/metrics {
|
|
23 proxy_pass http://127.0.0.1:8001/metrics;
|
|
24 }
|
|
25 location /light-bridge/api/ {
|
|
26 proxy_pass http://127.0.0.1:8001/api/;
|
|
27 }
|
|
28
|
|
29 location = /light-bridge/vite-ws {
|
|
30 proxy_pass http://127.0.0.1:8002/light-bridge/vite-ws;
|
|
31 proxy_http_version 1.1;
|
|
32 proxy_set_header Upgrade $http_upgrade;
|
|
33 proxy_set_header Connection "Upgrade";
|
|
34 }
|
|
35
|
|
36 location /light-bridge/ {
|
|
37 proxy_pass http://127.0.0.1:8002/light-bridge/;
|
|
38 }
|
|
39 }
|
|
40 }
|