Mercurial > code > home > repos > light-bridge
view proxy.yaml @ 23:7d9a056e29fe
esp rgbw output; cleanup
author | drewp@bigasterisk.com |
---|---|
date | Mon, 29 Jan 2024 23:41:27 -0800 |
parents | 5a77696c6dab |
children | fb2e91f230f4 |
line wrap: on
line source
apiVersion: v1 kind: ConfigMap metadata: name: light-bridge-nginx-conf data: nginx.conf: | error_log /dev/stderr; pid /dev/null; events { worker_connections 64; } http { log_format main '[$time_local] code=$status bytes_sent=$bytes_sent req="$request"'; proxy_headers_hash_bucket_size 128; proxy_buffering off; server { access_log off; location = /metrics { proxy_pass http://127.0.0.1:8001/metrics; } location = /light-bridge/metrics { proxy_pass http://127.0.0.1:8001/metrics; } location /light-bridge/api/ { proxy_pass http://127.0.0.1:8001/api/; } location = /light-bridge/vite-ws { proxy_pass http://127.0.0.1:8002/light-bridge/vite-ws; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } location /light-bridge/ { proxy_pass http://127.0.0.1:8002/light-bridge/; } } }