tangled
alpha
login
or
join now
julien.rbrt.fr
/
ollama-proxy
0
fork
atom
lightweight go reverse proxy for ollama with bearer token authentication
go
proxy
ollama
0
fork
atom
overview
issues
pulls
pipelines
docs: add systemd example
julien.rbrt.fr
4 months ago
7139cbb0
9d57dc75
+24
1 changed file
expand all
collapse all
unified
split
ollama-proxy.service
+24
ollama-proxy.service
···
1
1
+
[Unit]
2
2
+
Description=Ollama Proxy - Bearer token authentication proxy for Ollama API
3
3
+
Documentation=https://github.com/julienrbrt/ollama-proxy
4
4
+
After=network-online.target
5
5
+
Wants=network-online.target
6
6
+
7
7
+
[Service]
8
8
+
Type=simple
9
9
+
Restart=on-failure
10
10
+
RestartSec=5s
11
11
+
12
12
+
# Environment variables
13
13
+
Environment="OP_AUTH_TOKEN=your-secret-token-here"
14
14
+
Environment="OP_OLLAMA_URL=http://localhost:11434"
15
15
+
Environment="OP_PORT=11433"
16
16
+
17
17
+
# Alternatively, use an environment file:
18
18
+
# EnvironmentFile=/etc/ollama-proxy/config.env
19
19
+
20
20
+
# Path to the binary
21
21
+
ExecStart=/usr/local/bin/ollama-proxy
22
22
+
23
23
+
[Install]
24
24
+
WantedBy=multi-user.target