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

ci: add ci config

+46
+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
+4
.gitignore
··· 8 8 # Test binary, built with `go test -c` 9 9 *.test 10 10 11 + # Coverage files 12 + coverage.out 13 + coverage.html 14 + 11 15 # Output of the go build 12 16 ollama-proxy 13 17
+2
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 + 3 5 A lightweight Go reverse proxy for Ollama with Bearer token authentication. 4 6 5 7 ## Features