[GH-ISSUE #300] [feat] 建议支持自建gitlab #219

Closed
opened 2026-03-02 03:38:31 +03:00 by kerem · 10 comments
Owner

Originally created by @SouSuoKe on GitHub (Jun 24, 2025).
Original GitHub issue: https://github.com/codexu/note-gen/issues/300

Originally assigned to: @codexu on GitHub.

描述你的建议

Image
群晖中使用这三个docker镜像搭建了自己的gitlab,设置中看到支持github、gitee,但是没有自建gitlab这种,虽然也有webdav,但是更希望保存到git中

Originally created by @SouSuoKe on GitHub (Jun 24, 2025). Original GitHub issue: https://github.com/codexu/note-gen/issues/300 Originally assigned to: @codexu on GitHub. ### 描述你的建议 ![Image](https://github.com/user-attachments/assets/d2eb221e-7989-4629-8c82-bd4611444b05) 群晖中使用这三个docker镜像搭建了自己的gitlab,设置中看到支持github、gitee,但是没有自建gitlab这种,虽然也有webdav,但是更希望保存到git中
kerem 2026-03-02 03:38:31 +03:00
Author
Owner

@woodcoal commented on GitHub (Jun 26, 2025):

比如 gitea 这类第三方,可以使用标准 git 协议来支持

<!-- gh-comment-id:3006931955 --> @woodcoal commented on GitHub (Jun 26, 2025): 比如 gitea 这类第三方,可以使用标准 git 协议来支持
Author
Owner

@xtay573269555 commented on GitHub (Jul 10, 2025):

比如 gitea 这类第三方,可以使用标准 git 协议来支持

赞同。可以像大模型的配置那样,让用户可以自行选择和配置 git 仓库的 API 地址和 API Key,这样就只需要适配协议即可。同类型协议的仓库不用重复造轮子。

<!-- gh-comment-id:3055058960 --> @xtay573269555 commented on GitHub (Jul 10, 2025): > 比如 gitea 这类第三方,可以使用标准 git 协议来支持 赞同。可以像大模型的配置那样,让用户可以自行选择和配置 git 仓库的 API 地址和 API Key,这样就只需要适配协议即可。同类型协议的仓库不用重复造轮子。
Author
Owner

@codexu commented on GitHub (Jul 22, 2025):

Image
<!-- gh-comment-id:3101483605 --> @codexu commented on GitHub (Jul 22, 2025): <img width="1998" height="732" alt="Image" src="https://github.com/user-attachments/assets/80fc5cb1-bd22-4f25-a0fa-6815c547efdd" />
Author
Owner

@SouSuoKe commented on GitHub (Jul 23, 2025):

@codexu 大佬,自建gitlab 跟 gitlab.com 的链接不太一样,我看代码里 gitlab-sync.tsx#L112
请求的是${gitlabCustomUrl}/-/user_settings/personal_access_tokens ,
但是我实际的是 ${gitlabCustomUrl}/profile/personal_access_tokens

Image
<!-- gh-comment-id:3105284646 --> @SouSuoKe commented on GitHub (Jul 23, 2025): @codexu 大佬,自建gitlab 跟 gitlab.com 的链接不太一样,我看代码里 [gitlab-sync.tsx#L112](https://github.com/codexu/note-gen/blob/a80e296506fa38daf3fd6faff6956208456fc4a6/src/app/core/setting/sync/gitlab-sync.tsx#L112) 请求的是${gitlabCustomUrl}/-/user_settings/personal_access_tokens , 但是我实际的是 ${gitlabCustomUrl}/profile/personal_access_tokens <img width="1360" height="720" alt="Image" src="https://github.com/user-attachments/assets/51b5cc01-58d1-4521-9232-68f9363fac6f" />
Author
Owner

@codexu commented on GitHub (Jul 23, 2025):

没测自建 Gitlab,只测试了 Gitlab.com 和极狐,这块我后续自己搭建一个,然后修改。

<!-- gh-comment-id:3105289262 --> @codexu commented on GitHub (Jul 23, 2025): 没测自建 Gitlab,只测试了 Gitlab.com 和极狐,这块我后续自己搭建一个,然后修改。
Author
Owner

@SouSuoKe commented on GitHub (Jul 23, 2025):

我可以帮忙测试呀~~

实际的url:
Image

点击NoteGen 创建 access token 进入的url:
Image

<!-- gh-comment-id:3105296708 --> @SouSuoKe commented on GitHub (Jul 23, 2025): 我可以帮忙测试呀~~ **实际的url:** <img width="1920" height="995" alt="Image" src="https://github.com/user-attachments/assets/f7bad723-9338-46ec-94af-1d12ba6a2e21" /> **点击NoteGen 创建 access token 进入的url:** <img width="1920" height="597" alt="Image" src="https://github.com/user-attachments/assets/bc4ae59c-7651-4bf1-ba6c-b0a4a50fd0bd" />
Author
Owner

@codexu commented on GitHub (Jul 23, 2025):

接口请求是正确的吗,比如上传文件这种接口

<!-- gh-comment-id:3105318039 --> @codexu commented on GitHub (Jul 23, 2025): 接口请求是正确的吗,比如上传文件这种接口
Author
Owner

@SouSuoKe commented on GitHub (Jul 23, 2025):

没看到别的,需要什么可以把接口名和现在程序里请求的url发出来,我可以试试,比如:

创建access token:${gitlabCustomUrl}/-/user_settings/personal_access_tokens
<!-- gh-comment-id:3105512460 --> @SouSuoKe commented on GitHub (Jul 23, 2025): 没看到别的,需要什么可以把接口名和现在程序里请求的url发出来,我可以试试,比如: ``` 创建access token:${gitlabCustomUrl}/-/user_settings/personal_access_tokens ```
Author
Owner

@SouSuoKe commented on GitHub (Jul 28, 2025):

大佬,我翻到了个有用的picgo插件对我的问题好像有点帮助:https://github.com/D-W-X/picgo-plugin-gitlab-files

这个插件有个【自托管的Gitlab版本是否低于13.0】的开关,他的描述是:【可选,对于Gitlab版本低于13.0的情况,使用 raw ,否则使用 -/raw】
Image

<!-- gh-comment-id:3125877667 --> @SouSuoKe commented on GitHub (Jul 28, 2025): 大佬,我翻到了个有用的picgo插件对我的问题好像有点帮助:[https://github.com/D-W-X/picgo-plugin-gitlab-files](https://github.com/D-W-X/picgo-plugin-gitlab-files) 这个插件有个【自托管的Gitlab版本是否低于13.0】的开关,他的描述是:【可选,对于Gitlab版本低于13.0的情况,使用 raw ,否则使用 -/raw】 <img width="800" height="450" alt="Image" src="https://github.com/user-attachments/assets/defc7b64-082e-4669-8949-d6fce633b2eb" />
Author
Owner

@cretone-zen commented on GitHub (Aug 14, 2025):

gitea的可以按照gitlab来加上去吗,gitlab太大了,gitea小很多又好部署

<!-- gh-comment-id:3186393962 --> @cretone-zen commented on GitHub (Aug 14, 2025): gitea的可以按照gitlab来加上去吗,gitlab太大了,gitea小很多又好部署
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#219
No description provided.