lightweight go reverse proxy for ollama with bearer token authentication
go proxy ollama
at main 492 B view raw
1.PHONY: build test lint run clean help 2 3build: ## Build the binary 4 go build -o ollama-proxy 5 6test: ## Run tests 7 go test -v ./... 8 9lint: ## Run linter 10 golangci-lint run 11 12run: ## Run the application (requires OP_AUTH_TOKEN env var) 13 go run . 14 15clean: ## Remove build artifacts 16 rm -f ollama-proxy 17 18help: ## Show this help message 19 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' 20 21.DEFAULT_GOAL := help