https://github.com/mili-tan/onllama.myregistry
Running your own Ollama Registry locally. / 在本地运行你自己的 Ollama 模型仓库。
https://github.com/mili-tan/onllama.myregistry
mirror mirrors ollama ollama-api registry
Last synced: 5 months ago
JSON representation
Running your own Ollama Registry locally. / 在本地运行你自己的 Ollama 模型仓库。
- Host: GitHub
- URL: https://github.com/mili-tan/onllama.myregistry
- Owner: mili-tan
- License: mit
- Created: 2024-11-26T13:21:37.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-01-04T10:56:42.000Z (6 months ago)
- Last Synced: 2025-01-04T10:58:36.562Z (6 months ago)
- Topics: mirror, mirrors, ollama, ollama-api, registry
- Language: C#
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Onllama.MyRegistry
> Please ensure that you have already [installed the .NET SDK](https://learn.microsoft.com/en-us/dotnet/core/install/linux) for your environment.> 请确保已经 [安装 .NET SDK](https://learn.microsoft.com/zh-cn/dotnet/core/install/linux) 运行环境
- Server / 服务端
```
#for Windows
#net stop httpollama pull library/qwen2.5
git clone https://github.com/mili-tan/Onllama.MyRegistry
cd Onllama.MyRegistry
dotnet run -c Release
```
- Client / 客户端
```
ollama pull /library/qwen2.5 --insecure
ollama cp /library/qwen2.5 library/qwen2.5
```
- Usage / 使用
```
Onllama.MyRegistry - Running your own Ollama Registry locally.
Copyright (c) 2024 Milkey Tan. Code released under the MIT LicenseUsage: Onllama.MyRegistry [options]
Options:
-?|-he|--help Show help information / 查看帮助信息。
-l|--listen Set server listening address and port / 监听的地址与端口。
-m|--model Set model path / 模型文件路径。
-h|--host Set model path / 设置允许的主机名。(默认全部允许)
-s|--https Set enable HTTPS (Self-signed by default, not recommended) / 启用 HTTPS。(默认自签名,不推荐)
-pem|--pemfile[:] Set your pem certificate file path <./cert.pem> / PEM 证书路径。 <./cert.pem>
-key|--keyfile[:] Set your pem certificate key file path <./cert.key> / PEM 证书密钥路径。 <./cert.key>
```
## TODO
- [x] CLI
- [x] HTTPS
- [ ] Ollama Push
- [ ] Identity / Ollama Keys
- [ ] Fallback to reverse proxy