annotate proxy.yaml @ 7:f0d549ec5e59 default tip

deployment and hostname
author drewp@bigasterisk.com
date Mon, 23 Sep 2024 01:24:48 -0700
parents 0cc41259fddd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
1 apiVersion: v1
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
2 kind: ConfigMap
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
3 metadata:
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
4 name: pi-mqtt-nginx-conf
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
5 data:
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
6 nginx.conf: |
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
7 error_log /dev/stderr;
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
8 pid /dev/null;
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
9 events {
1
f92cec01b59e merge with template project
drewp@bigasterisk.com
parents: 0
diff changeset
10 worker_connections 64;
0
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
11 }
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
12 http {
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
13 log_format main '[$time_local] code=$status bytes_sent=$bytes_sent req="$request"';
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
14 proxy_headers_hash_bucket_size 128;
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
15 proxy_buffering off;
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
16 server {
1
f92cec01b59e merge with template project
drewp@bigasterisk.com
parents: 0
diff changeset
17 access_log off;
0
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
18
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
19 location = /metrics {
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
20 proxy_pass http://127.0.0.1:8001/metrics;
3
0cc41259fddd healthcheck
drewp@bigasterisk.com
parents: 1
diff changeset
21 }
0cc41259fddd healthcheck
drewp@bigasterisk.com
parents: 1
diff changeset
22 location = /health {
0cc41259fddd healthcheck
drewp@bigasterisk.com
parents: 1
diff changeset
23 proxy_pass http://127.0.0.1:8001/health;
0
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
24 }
1
f92cec01b59e merge with template project
drewp@bigasterisk.com
parents: 0
diff changeset
25 location = /pi-mqtt/metrics {
f92cec01b59e merge with template project
drewp@bigasterisk.com
parents: 0
diff changeset
26 proxy_pass http://127.0.0.1:8001/metrics;
f92cec01b59e merge with template project
drewp@bigasterisk.com
parents: 0
diff changeset
27 }
0
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
28 location /pi-mqtt/api/ {
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
29 proxy_pass http://127.0.0.1:8001/api/;
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
30 }
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
31
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
32 location = /pi-mqtt/vite-ws {
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
33 proxy_pass http://127.0.0.1:8002/pi-mqtt/vite-ws;
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
34 proxy_http_version 1.1;
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
35 proxy_set_header Upgrade $http_upgrade;
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
36 proxy_set_header Connection "Upgrade";
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
37 }
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
38
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
39 location /pi-mqtt/ {
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
40 proxy_pass http://127.0.0.1:8002/pi-mqtt/;
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
41 }
3989f073ed9e start. hardcoded motion light in garage
drewp@bigasterisk.com
parents:
diff changeset
42 }
1
f92cec01b59e merge with template project
drewp@bigasterisk.com
parents: 0
diff changeset
43 }