From 2c457b64ceee64651a429a8d0c4cfd4cf3979848 Mon Sep 17 00:00:00 2001 From: beardedtek Date: Tue, 29 Jul 2025 11:48:01 -0800 Subject: [PATCH] Update backend configuration to use Gitea, including new authentication settings and API endpoints --- static/admin/config.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index 8d6e83a..51204a8 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -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"} - ]} \ No newline at end of file + ]}