repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
e80b160
parent
e57c90d
author
Antonio Mika
date
2023-11-13 20:25:51 +0000 UTC
Add metrics for imgproxy
2 files changed,  +11, -0
M .env.example
+2, -0
1@@ -24,6 +24,8 @@ IMGPROXY_KEY=6465616462656566 # deadbeef
2 IMGPROXY_SALT=6465616462656566 # deadbeef
3 AWS_ACCESS_KEY_ID=$MINIO_ROOT_USER
4 AWS_SECRET_ACCESS_KEY=$MINIO_ROOT_PASSWORD
5+IMGPROXY_PROMETHEUS_BIND=:8081
6+IMGPROXY_PROMETHEUS_NAMESPACE=imgproxy
7 
8 LISTS_CADDYFILE=./caddy/Caddyfile
9 LISTS_V4=
M caddy/Caddyfile.minio
+9, -0
 1@@ -49,6 +49,15 @@
 2 		reverse_proxy minio:9001
 3 	}
 4 
 5+	@imgproxy_prometheus {
 6+		host imgproxy.{$APP_DOMAIN}
 7+		path /metrics
 8+	}
 9+
10+	handle @imgproxy_prometheus {
11+		reverse_proxy imgproxy:8081
12+	}
13+
14 	@imgproxy {
15 		host imgproxy.{$APP_DOMAIN}
16 	}