Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
6129f412
Unverified
Commit
6129f412
authored
Oct 22, 2023
by
Timothy J. Baek
Committed by
AJ ONeal
Oct 22, 2023
Browse files
doc: clarify usage of OLLAMA_API_BASE_URL
parent
87c8467d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
README.md
README.md
+3
-2
example.env
example.env
+3
-1
No files found.
README.md
View file @
6129f412
...
@@ -48,9 +48,10 @@ OLLAMA_HOST=0.0.0.0 OLLAMA_ORIGINS=* ollama serve
...
@@ -48,9 +48,10 @@ OLLAMA_HOST=0.0.0.0 OLLAMA_ORIGINS=* ollama serve
### Using Docker 🐳
### Using Docker 🐳
```
bash
If Ollama is hosted on your local machine, run the following command:
docker build
--build-arg
OLLAMA_API_BASE_URL
=
'http://localhost:11434/api'
-t
ollama-webui
.
```
bash
docker build
--build-arg
OLLAMA_API_BASE_URL
=
''
-t
ollama-webui
.
docker run
-d
-p
3000:8080
--name
ollama-webui
--restart
always ollama-webui
docker run
-d
-p
3000:8080
--name
ollama-webui
--restart
always ollama-webui
```
```
...
...
example.env
View file @
6129f412
PUBLIC_API_BASE_URL="http://localhost:11434/api"
# must be defined, but defaults to 'http://{location.hostname}:11434/api'
# can also use path, such as '/api'
PUBLIC_API_BASE_URL=''
OLLAMA_API_ID='my-api-token'
OLLAMA_API_ID='my-api-token'
OLLAMA_API_TOKEN='xxxxxxxxxxxxxxxx'
OLLAMA_API_TOKEN='xxxxxxxxxxxxxxxx'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment