mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 02:49:03 +08:00
Fix issue with incorrect port number in app_base_url due to NAT networks (#6653)
This commit is contained in:
parent
4b93df5a30
commit
a68df696ec
@ -1116,7 +1116,7 @@ class Site(db.Model):
|
||||
@property
|
||||
def app_base_url(self):
|
||||
return (
|
||||
dify_config.APP_WEB_URL if dify_config.APP_WEB_URL else request.host_url.rstrip('/'))
|
||||
dify_config.APP_WEB_URL if dify_config.APP_WEB_URL else request.url_root.rstrip('/'))
|
||||
|
||||
|
||||
class ApiToken(db.Model):
|
||||
|
Loading…
x
Reference in New Issue
Block a user