For repositories stored on Gitea, the
gitea backend allows CMS users to log in directly with their Gitea account. Note that all users must have push access to your content repository for this to work.
Please note that only Gitea
v1.20 and upwards is supported due to API limitations in previous versions.
With Gitea's PKCE authorization, users can authenticate with Gitea directly from the client. To do this:
- Add your Static CMS instance as an OAuth application in your user/organization settings or through the admin panel of your Gitea instance. Please make sure to uncheck the Confidential Client checkbox. For the Redirect URIs, enter the addresses where you access Static CMS, for example,
- Gitea provides you with a Client ID. Copy it and insert it into your
configfile along with the other options:
backend: name: gitea repo: owner-name/repo-name # Path to your Gitea repository app_id: your-client-id # The Client ID provided by Gitea api_root: https://gitea.example.com/api/v1 # API URL of your Gitea instance base_url: https://gitea.example.com # Root URL of your Gitea instance # optional, defaults to main # branch: main
Please note that the Gitea backend does not support git-lfs.