Mercurial > code > home > repos > mqtt_metrics
comparison proxy.yaml @ 0:0b5b4ede1bf5
start with a mockup of the debugging display
author | drewp@bigasterisk.com |
---|---|
date | Fri, 09 Aug 2024 15:09:22 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:0b5b4ede1bf5 |
---|---|
1 apiVersion: v1 | |
2 kind: ConfigMap | |
3 metadata: | |
4 name: mqtt-metrics-nginx-conf | |
5 data: | |
6 nginx.conf: | | |
7 error_log /dev/stderr; | |
8 pid /dev/null; | |
9 events { | |
10 worker_connections 64; | |
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 /dev/stderr main; | |
18 | |
19 location = /metrics { | |
20 proxy_pass http://127.0.0.1:8001/metrics; | |
21 } | |
22 location = /mqtt-metrics/metrics { | |
23 proxy_pass http://127.0.0.1:8001/metrics; | |
24 } | |
25 location /mqtt-metrics/api/ { | |
26 proxy_pass http://127.0.0.1:8001/api/; | |
27 } | |
28 | |
29 location = /mqtt-metrics/vite-ws { | |
30 proxy_pass http://127.0.0.1:8002/mqtt-metrics/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 /mqtt-metrics/ { | |
37 proxy_pass http://127.0.0.1:8002/mqtt-metrics/; | |
38 } | |
39 } | |
40 } |