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:
name: gitlab
name: gitea
repo: beardedtek/flowbite-beardedtek.com
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
commit_messages:
create: 'content: create {{collection}} "{{slug}}"'
@@ -11,6 +12,16 @@ backend:
uploadMedia: 'media: upload {{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
media_folder: "static/images/uploads"
@@ -109,4 +120,4 @@ collections:
{label: "Authors", name: "authors", widget: "string"},
{label: "Homepage", name: "homepage", widget: "string"},
{label: "Social Image Path", name: "social_image_path", widget: "string"}
]}
]}