Mercurial > code > home > repos > pi_mqtt
comparison proxy.yaml @ 0:3989f073ed9e
start. hardcoded motion light in garage
author | drewp@bigasterisk.com |
---|---|
date | Thu, 24 Aug 2023 16:28:05 -0700 |
parents | |
children | f92cec01b59e |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3989f073ed9e |
---|---|
1 apiVersion: v1 | |
2 kind: ConfigMap | |
3 metadata: | |
4 name: pi-mqtt-nginx-conf | |
5 data: | |
6 nginx.conf: | | |
7 error_log /dev/stderr; | |
8 pid /dev/null; | |
9 events { | |
10 worker_connections 16; | |
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 /pi-mqtt/api/ { | |
23 proxy_pass http://127.0.0.1:8001/api/; | |
24 } | |
25 | |
26 location = /pi-mqtt/vite-ws { | |
27 proxy_pass http://127.0.0.1:8002/pi-mqtt/vite-ws; | |
28 proxy_http_version 1.1; | |
29 proxy_set_header Upgrade $http_upgrade; | |
30 proxy_set_header Connection "Upgrade"; | |
31 } | |
32 | |
33 location /pi-mqtt/ { | |
34 proxy_pass http://127.0.0.1:8002/pi-mqtt/; | |
35 } | |
36 } | |
37 } |