lightweight go reverse proxy for ollama with bearer token authentication
go proxy ollama

refactor!: migrated to tangled

+27 -45
-40
.github/workflows/test.yml
··· 1 - name: Test 2 - 3 - on: 4 - push: 5 - branches: [main] 6 - pull_request: 7 - 8 - jobs: 9 - test: 10 - name: Test 11 - runs-on: ubuntu-latest 12 - 13 - steps: 14 - - name: Checkout code 15 - uses: actions/checkout@v4 16 - 17 - - name: Set up Go 18 - uses: actions/setup-go@v5 19 - 20 - - name: Download dependencies 21 - run: go mod download 22 - 23 - - name: Run tests 24 - run: go test -v -race ./... 25 - 26 - lint: 27 - name: Lint 28 - runs-on: ubuntu-latest 29 - 30 - steps: 31 - - name: Checkout code 32 - uses: actions/checkout@v4 33 - 34 - - name: Set up Go 35 - uses: actions/setup-go@v5 36 - 37 - - name: Run golangci-lint 38 - uses: golangci/golangci-lint-action@v6 39 - with: 40 - version: latest
+24
.tangled/workflows/ci.yml
··· 1 + when: 2 + - event: ["push"] 3 + branch: ["main"] 4 + - event: ["pull_request"] 5 + branch: ["main"] 6 + 7 + engine: "nixery" 8 + 9 + # using the default values 10 + clone: 11 + skip: false 12 + depth: 1 13 + submodules: false 14 + 15 + dependencies: 16 + nixpkgs: 17 + - go 18 + 19 + steps: 20 + - name: "Build servmon" 21 + command: "go build ." 22 + 23 + - name: "Run tests" 24 + command: "go test ./... -v"
LICENSE license
+1 -3
README.md readme.md
··· 1 1 # Ollama Proxy 2 2 3 - [![Test](https://github.com/julienrbrt/ollama-proxy/actions/workflows/test.yml/badge.svg)](https://github.com/julienrbrt/ollama-proxy/actions/workflows/test.yml) 4 - 5 3 A lightweight Go reverse proxy for Ollama with Bearer token authentication. 6 4 7 5 ## Features ··· 13 11 ## Installation 14 12 15 13 ```bash 16 - go install github.com/julienrbrt/ollama-proxy@latest 14 + go install pkg.rbrt.fr/ollama-proxy@latest 17 15 ``` 18 16 19 17 ```bash
+1 -1
go.mod
··· 1 - module github.com/julienrbrt/ollama-proxy 1 + module pkg.rbrt.fr/ollama-proxy 2 2 3 3 go 1.23 4 4
+1 -1
ollama-proxy.service
··· 1 1 [Unit] 2 2 Description=Ollama Proxy - Bearer token authentication proxy for Ollama API 3 - Documentation=https://github.com/julienrbrt/ollama-proxy 3 + Documentation=https://tangled.org/julien.rbrt.fr/ollama-proxy 4 4 After=network-online.target 5 5 Wants=network-online.target 6 6