Update backend configuration to use Gitea, including new authentication settings and API endpoints

This commit is contained in:
2025-07-29 11:48:01 -08:00
parent 827f5bc88c
commit 2c457b64ce

View File

@@ -1,8 +1,9 @@
backend: backend:
name: gitlab name: gitea
repo: beardedtek/flowbite-beardedtek.com repo: beardedtek/flowbite-beardedtek.com
branch: main branch: main
base_url: https://git.beardedtek.com/api/v1 base_url: https://git.beardedtek.com
api_root: https://git.beardedtek.com/api/v1
auth_endpoint: https://git.beardedtek.com/login/oauth/authorize auth_endpoint: https://git.beardedtek.com/login/oauth/authorize
commit_messages: commit_messages:
create: 'content: create {{collection}} "{{slug}}"' create: 'content: create {{collection}} "{{slug}}"'
@@ -11,6 +12,16 @@ backend:
uploadMedia: 'media: upload {{path}}' uploadMedia: 'media: upload {{path}}'
deleteMedia: 'media: delete {{path}}' deleteMedia: 'media: delete {{path}}'
auth:
provider: gitea
client_id: "${GITEA_CLIENT_ID}"
client_secret: "${GITEA_CLIENT_SECRET}"
auth_url: https://git.beardedtek.com/login/oauth/authorize
token_url: https://git.beardedtek.com/login/oauth/access_token
user_url: https://git.beardedtek.com/api/v1/user
enable_pkce: true
scope: "user"
local_backend: true local_backend: true
media_folder: "static/images/uploads" media_folder: "static/images/uploads"