From 9e3c9323c3d8069e9f1b14f010324b1fc784830a Mon Sep 17 00:00:00 2001 From: Stephen Adamson Date: Fri, 10 Jul 2026 10:33:33 +0100 Subject: [PATCH] ci: fix nginx config check cp path, add R2_ENDPOINT to .env.example - nginx-check: cp needs trailing filename when copying to a directory - .env.example: uncomment R2_ENDPOINT as an active variable so the env-docs-check script detects it as documented --- .env.example | 5 ++--- .gitea/workflows/ci.yaml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 5080d9a..195d823 100644 --- a/.env.example +++ b/.env.example @@ -23,13 +23,12 @@ S3_BUCKET=crussell S3_PROFILE_PICS_BUCKET=crussell-profile-pics AWS_REGION=eu-west-2 -# Prod: Uncomment and fill these for R2 -# R2_ENDPOINT=https://.r2.cloudflarestorage.com +# Prod: Set R2_ENDPOINT for Cloudflare R2 (overrides S3_* vars in non-dev builds) +R2_ENDPOINT= # R2_ACCESS_KEY= # R2_SECRET_KEY= # R2_BUCKET=crussell # R2_PUBLIC_URL=https://pub-.r2.dev -# AWS_REGION=auto # Square Payment Gateway SQUARE_ACCESS_TOKEN= diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index b05fdaf..5b4dd4b 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -771,5 +771,5 @@ jobs: - name: Validate nginx config run: | - cp $(pwd)/nginx/conf.d/default.conf /etc/nginx/conf.d/ + cp $(pwd)/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf nginx -t