diff --git a/.env.example b/.env.example index 79c4d3c5..e26c1e56 100644 --- a/.env.example +++ b/.env.example @@ -10,15 +10,14 @@ FRONTEND_URL="http://localhost:4200" NEXT_PUBLIC_BACKEND_URL="http://localhost:3000" BACKEND_INTERNAL_URL="http://localhost:3000" -## These are dummy values, you must create your own from Cloudflare. ## Remember to set your public internet IP address in the allow-list for the API token. ## ## Cloudflare is currently required to save things like social media avatars for accounts. -CLOUDFLARE_ACCOUNT_ID="QhcMSXQyPuMCRpSQcSYdEuTYgHeCXHbu" -CLOUDFLARE_ACCESS_KEY="dcfCMSuFEeCNfvByUureMZEfxWJmDqZe" -CLOUDFLARE_SECRET_ACCESS_KEY="zTTMXBmtyLPwHEdpACGHgDgzRTNpTJewiNriLnUS" -CLOUDFLARE_BUCKETNAME="postiz" -CLOUDFLARE_BUCKET_URL="https://QhcMSXQyPuMCRpSQcSYdEuTYgHeCXHbu.r2.cloudflarestorage.com/" +CLOUDFLARE_ACCOUNT_ID="your-account-id" +CLOUDFLARE_ACCESS_KEY="your-access-key" +CLOUDFLARE_SECRET_ACCESS_KEY="your-secret-access-key" +CLOUDFLARE_BUCKETNAME="your-bucket-name" +CLOUDFLARE_BUCKET_URL="https://your-bucket-url.r2.cloudflarestorage.com/" CLOUDFLARE_REGION="auto" diff --git a/.github/workflows/dev-branch b/.github/workflows/dev-branch new file mode 100644 index 00000000..9e5b36ed --- /dev/null +++ b/.github/workflows/dev-branch @@ -0,0 +1,23 @@ +name: Make sure new PRs are sent to development + +on: + pull_request_target: + types: [opened, edited] + +jobs: + check-branch: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + # Do not checkout the repository here. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ for more information + - uses: Vankka/pr-target-branch-action@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + target: main + exclude: dev # Don't prevent going from development -> main + change-to: dev + comment: | + Your PR's base branch was set to `main`, PRs should be set to target `dev`. + The base branch of this PR has been automatically changed to `development`, please check that there are no merge conflicts