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
78bf9bad
Commit
78bf9bad
authored
Dec 04, 2023
by
Timothy J. Baek
Browse files
chore: example.env updated
parent
179b9635
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
backend/config.py
backend/config.py
+2
-3
example.env
example.env
+8
-5
No files found.
backend/config.py
View file @
78bf9bad
...
@@ -6,8 +6,7 @@ from secrets import token_bytes
...
@@ -6,8 +6,7 @@ from secrets import token_bytes
from
base64
import
b64encode
from
base64
import
b64encode
import
os
import
os
load_dotenv
(
find_dotenv
(
"../.env"
))
load_dotenv
(
find_dotenv
())
####################################
####################################
# ENV (dev,test,prod)
# ENV (dev,test,prod)
...
@@ -38,7 +37,7 @@ WEBUI_VERSION = os.environ.get("WEBUI_VERSION", "v1.0.0-alpha.21")
...
@@ -38,7 +37,7 @@ WEBUI_VERSION = os.environ.get("WEBUI_VERSION", "v1.0.0-alpha.21")
####################################
####################################
WEBUI_AUTH
=
True
if
os
.
environ
.
get
(
"WEBUI_AUTH"
,
"
TRU
E"
)
==
"TRUE"
else
False
WEBUI_AUTH
=
True
if
os
.
environ
.
get
(
"WEBUI_AUTH"
,
"
FALS
E"
)
==
"TRUE"
else
False
####################################
####################################
...
...
example.env
View file @
78bf9bad
# If serving with the backend (Recommended)
# If you're serving both the frontend and backend (Recommended)
# Set the public API base URL for seamless communication
PUBLIC_API_BASE_URL='/ollama/api'
PUBLIC_API_BASE_URL='/ollama/api'
#
Comment above and Uncomment below i
f you're serving only the frontend (Not supported)
#
I
f you're serving only the frontend (Not
recommended and not fully
supported)
#
must be defined, but defaults to 'http://{location.hostname}:11434/api'
#
Comment above and Uncomment below
#
can also use path, such as
'/api'
#
You can use the default value or specify a custom path, e.g.,
'/api'
# PUBLIC_API_BASE_URL=''
# PUBLIC_API_BASE_URL='
http://{location.hostname}:11434/api
'
# Ollama URL for the backend to connect
# The path '/ollama/api' will be redirected to the specified backend URL
OLLAMA_API_BASE_URL='http://localhost:11434/api'
OLLAMA_API_BASE_URL='http://localhost:11434/api'
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