Decap CMS OAuth

This commit is contained in:
2025-12-02 16:49:08 +01:00
parent ae16f86d5e
commit 79ab6dc7ec
2 changed files with 54 additions and 0 deletions

41
static/admin/config.yml Normal file
View File

@@ -0,0 +1,41 @@
backend:
name: gitea
repo: StartIT/web.start-it.nl # owner/repo exact zoals in Gitea
branch: main
app_id: YOUR_GITEA_CLIENT_ID # hier je echte Client ID invullen
api_root: https://git.start-it.nl/api/v1
base_url: https://git.start-it.nl
auth_endpoint: https://git.start-it.nl/login/oauth/authorize
media_folder: static/img # waar uploads in je repo terecht komen
public_folder: /img # hoe die paden op de site heten
# voorbeeld: een simpele 'pages' collectie
collections:
- name: "pages"
label: "Pagina's"
label_singular: "Pagina"
folder: "content" # of preciezer: bijv. "content/pages"
create: true
format: "frontmatter"
extension: "md"
slug: "{{slug}}"
fields:
- { label: "Titel", name: "title", widget: "string" }
- { label: "Datum", name: "date", widget: "datetime", required: false }
- { label: "Body", name: "body", widget: "markdown" }
backend:
name: gitea
repo: StartIT/web.start-it.nl
branch: main
# Belangrijk: hier komt jouw Client ID:
app_id: YOUR_CLIENT_ID_HERE
api_root: https://git.start-it.nl/api/v1
base_url: https://git.start-it.nl
auth_endpoint: https://git.start-it.nl/login/oauth/authorize
media_folder: static/img
public_folder: /img