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

refactor!: migrated to tangled

Changed files
+27 -45
.github
workflows
.tangled
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
···
+24
.tangled/workflows/ci.yml
···
···
+
when:
+
- event: ["push"]
+
branch: ["main"]
+
- event: ["pull_request"]
+
branch: ["main"]
+
+
engine: "nixery"
+
+
# using the default values
+
clone:
+
skip: false
+
depth: 1
+
submodules: false
+
+
dependencies:
+
nixpkgs:
+
- go
+
+
steps:
+
- name: "Build servmon"
+
command: "go build ."
+
+
- name: "Run tests"
+
command: "go test ./... -v"
LICENSE license
+1 -3
README.md 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
···
## Installation
```bash
-
go install github.com/julienrbrt/ollama-proxy@latest
```
```bash
···
# Ollama Proxy
A lightweight Go reverse proxy for Ollama with Bearer token authentication.
## Features
···
## Installation
```bash
+
go install pkg.rbrt.fr/ollama-proxy@latest
```
```bash
+1 -1
go.mod
···
-
module github.com/julienrbrt/ollama-proxy
go 1.23
···
+
module pkg.rbrt.fr/ollama-proxy
go 1.23
+1 -1
ollama-proxy.service
···
[Unit]
Description=Ollama Proxy - Bearer token authentication proxy for Ollama API
-
Documentation=https://github.com/julienrbrt/ollama-proxy
After=network-online.target
Wants=network-online.target
···
[Unit]
Description=Ollama Proxy - Bearer token authentication proxy for Ollama API
+
Documentation=https://tangled.org/julien.rbrt.fr/ollama-proxy
After=network-online.target
Wants=network-online.target