repos / pico

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

commit
3f0d92b
parent
f1e1fbb
author
Antonio Mika
date
2023-11-13 19:54:53 +0000 UTC
Update our caddyfiles for imgproxy
3 files changed,  +20, -4
M .env.example
+1, -0
1@@ -14,6 +14,7 @@ MINIO_PROMETHEUS_URL=
2 MINIO_PROMETHEUS_JOB_ID=minio
3 
4 USE_IMGPROXY=1
5+IMGPROXY_DOMAIN=imgproxy.dev.pico.sh
6 IMGPROXY_URL=http://imgproxy:8080
7 IMGPROXY_ALLOWED_SOURCES=s3://,local://
8 IMGPROXY_LOCAL_FILESYSTEM_ROOT=/storage
M caddy/Caddyfile.minio
+18, -3
 1@@ -4,8 +4,7 @@
 2 	}
 3 }
 4 
 5-*.{$APP_DOMAIN}, {$APP_DOMAIN} {
 6-	reverse_proxy minio:9000
 7+*.minio.{$APP_DOMAIN}, *.{$APP_DOMAIN}, {$APP_DOMAIN} {
 8 	tls {$APP_EMAIL} {
 9 		dns cloudflare {$CF_API_TOKEN}
10 		resolvers 1.1.1.1
11@@ -43,10 +42,26 @@
12 	}
13 
14 	@console {
15-		host console.{$APP_DOMAIN}
16+		host console.minio.{$APP_DOMAIN}
17 	}
18 
19 	handle @console {
20 		reverse_proxy minio:9001
21 	}
22+
23+	@minio {
24+		host minio.{$APP_DOMAIN}
25+	}
26+
27+	handle @minio {
28+		reverse_proxy minio:9000
29+	}
30+
31+	@imgproxy {
32+		host imgproxy.{$APP_DOMAIN}
33+	}
34+
35+	handle @imgproxy {
36+		reverse_proxy imgproxy:8080
37+	}
38 }
M docker-compose.prod.yml
+1, -1
1@@ -14,7 +14,7 @@ services:
2     env_file:
3       - .env.prod
4     environment:
5-      APP_DOMAIN: ${MINIO_DOMAIN:-minio.pico.sh}
6+      APP_DOMAIN: pico.sh
7       APP_EMAIL: ${MINIO_EMAIL:-hello@pico.sh}
8     volumes:
9       - ${MINIO_CADDYFILE}:/etc/caddy/Caddyfile