fix: authenticate gitea lfs uploads
This commit is contained in:
@@ -237,6 +237,7 @@ Copy `.env.example` to `.env.local` and fill in the values:
|
||||
|
||||
```env
|
||||
UPLOAD_SECRET_KEY=your-secret-key-here
|
||||
GIT_USERNAME=your-gitea-username
|
||||
GIT_TOKEN=your-git-provider-token
|
||||
GIT_BRANCH=main
|
||||
GIT_REPO_URL=https://git.example.com/your-org/your-repo
|
||||
@@ -250,6 +251,7 @@ NEXTCLOUD_BASE_PATH=Models
|
||||
| Variable | Description | Required |
|
||||
|----------|-------------|----------|
|
||||
| `UPLOAD_SECRET_KEY` | Secret key for upload authentication | Yes |
|
||||
| `GIT_USERNAME` | Git username for Git LFS Basic auth on Gitea. Required for Gitea when LFS files are uploaded. | Gitea LFS |
|
||||
| `GIT_TOKEN` | Git provider token with repository read/write access. `GITHUB_TOKEN` is still accepted for backward compatibility. | Yes |
|
||||
| `GIT_BRANCH` | Target branch (default: main) | No |
|
||||
| `GIT_REPO_URL` | Target GitHub or Gitea repository URL (`owner/repo`, HTTPS, or SSH) | Yes |
|
||||
@@ -278,6 +280,7 @@ After a security patch:
|
||||
docker build -t upload-gltf .
|
||||
docker run -p 3000:3000 \
|
||||
-e UPLOAD_SECRET_KEY=your-key \
|
||||
-e GIT_USERNAME=your-gitea-username \
|
||||
-e GIT_TOKEN=token_xxx \
|
||||
-e GIT_REPO_URL=https://git.fabrik.mathieu-chavanel.fr/math-pixel/La-Fabrik \
|
||||
-e NEXTCLOUD_URL=https://cloud.example.com \
|
||||
|
||||
Reference in New Issue
Block a user