mirror of
https://github.com/BeardedTek/flowbite-beardedtek.com.git
synced 2025-12-06 05:31:52 +00:00
Update backend configuration to use Gitea, including new authentication settings and API endpoints
This commit is contained in:
@@ -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"}
|
||||
]}
|
||||
]}
|
||||
|
||||
Reference in New Issue
Block a user