Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
5f9e1fdf
Commit
5f9e1fdf
authored
Jul 13, 2023
by
John Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: modify default url env
parent
85f14832
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
config.py
api/config.py
+5
-5
No files found.
api/config.py
View file @
5f9e1fdf
...
...
@@ -78,11 +78,11 @@ class Config:
def
__init__
(
self
):
# app settings
self
.
CONSOLE_API_URL
=
get_env
(
'CONSOLE_
API_URL'
)
if
get_env
(
'CONSOLE_API_URL'
)
else
get_env
(
'CONSOLE
_URL'
)
self
.
CONSOLE_WEB_URL
=
get_env
(
'CONSOLE_
WEB_URL'
)
if
get_env
(
'CONSOLE_WEB_URL'
)
else
get_env
(
'CONSOLE
_URL'
)
self
.
SERVICE_API_URL
=
get_env
(
'
SERVICE_API_URL'
)
if
get_env
(
'SERVICE_API_URL'
)
else
get_env
(
'
API_URL'
)
self
.
APP_WEB_URL
=
get_env
(
'APP_
WEB_URL'
)
if
get_env
(
'APP_WEB_URL'
)
else
get_env
(
'APP
_URL'
)
self
.
APP_API_URL
=
get_env
(
'APP_
API_URL'
)
if
get_env
(
'APP_API_URL'
)
else
get_env
(
'APP
_URL'
)
self
.
CONSOLE_API_URL
=
get_env
(
'CONSOLE_
URL'
)
if
get_env
(
'CONSOLE_URL'
)
else
get_env
(
'CONSOLE_API
_URL'
)
self
.
CONSOLE_WEB_URL
=
get_env
(
'CONSOLE_
URL'
)
if
get_env
(
'CONSOLE_URL'
)
else
get_env
(
'CONSOLE_WEB
_URL'
)
self
.
SERVICE_API_URL
=
get_env
(
'
API_URL'
)
if
get_env
(
'API_URL'
)
else
get_env
(
'SERVICE_
API_URL'
)
self
.
APP_WEB_URL
=
get_env
(
'APP_
URL'
)
if
get_env
(
'APP_URL'
)
else
get_env
(
'APP_WEB
_URL'
)
self
.
APP_API_URL
=
get_env
(
'APP_
URL'
)
if
get_env
(
'APP_URL'
)
else
get_env
(
'APP_API
_URL'
)
self
.
CURRENT_VERSION
=
"0.3.6"
self
.
COMMIT_SHA
=
get_env
(
'COMMIT_SHA'
)
self
.
EDITION
=
"SELF_HOSTED"
...
...
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