Add R2 image storage, upload endpoint, and CDN support
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
- Backend: R2StorageService, upload controller (POST /api/upload) - Frontend: CDN url helper, NEXT_PUBLIC_CDN_URL build arg - Deploy: pass R2 secrets from Woodpecker CI to containers via .env - Docs: update CLAUDE.md with CDN and upload conventions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@ services:
|
||||
args:
|
||||
- NEXT_PUBLIC_POSTHOG_KEY=phc_pe0mP58n724h9eFxanbGIUsfMyS14gnAmr5tYez9V3Q
|
||||
- NEXT_PUBLIC_POSTHOG_HOST=https://eu.i.posthog.com
|
||||
- NEXT_PUBLIC_CDN_URL=https://cdn.goodbrick.com.ua
|
||||
container_name: gb-dev-frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -24,6 +25,11 @@ services:
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Development
|
||||
- ConnectionStrings__Default=Host=postgres;Port=5432;Database=dev_db;Username=dev_user;Password=dev_pass_vB6nM3qP8yW2rT9k
|
||||
- R2__AccountId=${R2_ACCOUNT_ID}
|
||||
- R2__AccessKeyId=${R2_ACCESS_KEY_ID}
|
||||
- R2__SecretAccessKey=${R2_SECRET_ACCESS_KEY}
|
||||
- R2__BucketName=${R2_BUCKET_NAME:-goodbrick}
|
||||
- R2__PublicUrl=https://cdn.goodbrick.com.ua
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
|
||||
@@ -7,3 +7,8 @@ services:
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Development
|
||||
- ConnectionStrings__Default=Host=host.docker.internal;Port=5433;Database=dev_db;Username=dev_user;Password=dev_pass_vB6nM3qP8yW2rT9k
|
||||
- R2__AccountId=${R2_ACCOUNT_ID}
|
||||
- R2__AccessKeyId=${R2_ACCESS_KEY_ID}
|
||||
- R2__SecretAccessKey=${R2_SECRET_ACCESS_KEY}
|
||||
- R2__BucketName=${R2_BUCKET_NAME:-goodbrick}
|
||||
- R2__PublicUrl=https://cdn.goodbrick.com.ua
|
||||
|
||||
@@ -5,6 +5,7 @@ services:
|
||||
args:
|
||||
- NEXT_PUBLIC_POSTHOG_KEY=phc_pe0mP58n724h9eFxanbGIUsfMyS14gnAmr5tYez9V3Q
|
||||
- NEXT_PUBLIC_POSTHOG_HOST=https://eu.i.posthog.com
|
||||
- NEXT_PUBLIC_CDN_URL=https://cdn.goodbrick.com.ua
|
||||
container_name: gb-prod-frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -24,6 +25,11 @@ services:
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Production
|
||||
- ConnectionStrings__Default=Host=postgres;Port=5432;Database=prod_db;Username=prod_user;Password=prod_pass_kL9mN2pQ7xR8sT4v
|
||||
- R2__AccountId=${R2_ACCOUNT_ID}
|
||||
- R2__AccessKeyId=${R2_ACCESS_KEY_ID}
|
||||
- R2__SecretAccessKey=${R2_SECRET_ACCESS_KEY}
|
||||
- R2__BucketName=${R2_BUCKET_NAME:-goodbrick}
|
||||
- R2__PublicUrl=https://cdn.goodbrick.com.ua
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
|
||||
Reference in New Issue
Block a user