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

ci: add ci config

Changed files
+46
.github
workflows
+40
.github/workflows/test.yml
···
+
name: Test
+
+
on:
+
push:
+
branches: [main]
+
pull_request:
+
+
jobs:
+
test:
+
name: Test
+
runs-on: ubuntu-latest
+
+
steps:
+
- name: Checkout code
+
uses: actions/checkout@v4
+
+
- name: Set up Go
+
uses: actions/setup-go@v5
+
+
- name: Download dependencies
+
run: go mod download
+
+
- name: Run tests
+
run: go test -v -race ./...
+
+
lint:
+
name: Lint
+
runs-on: ubuntu-latest
+
+
steps:
+
- name: Checkout code
+
uses: actions/checkout@v4
+
+
- name: Set up Go
+
uses: actions/setup-go@v5
+
+
- name: Run golangci-lint
+
uses: golangci/golangci-lint-action@v6
+
with:
+
version: latest
+4
.gitignore
···
# Test binary, built with `go test -c`
*.test
+
# Coverage files
+
coverage.out
+
coverage.html
+
# Output of the go build
ollama-proxy
+2
README.md
···
# Ollama Proxy
+
[![Test](https://github.com/julienrbrt/ollama-proxy/actions/workflows/test.yml/badge.svg)](https://github.com/julienrbrt/ollama-proxy/actions/workflows/test.yml)
+
A lightweight Go reverse proxy for Ollama with Bearer token authentication.
## Features