mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-09 12:38:35 -05:00
Fixed issue related to reverse proxy.
1) Fix reverse proxy redirection in server mode. 2) All reverse proxies in desktop mode.
This commit is contained in:
+3
-3
@@ -97,9 +97,6 @@ app.config['sessions'] = dict()
|
||||
if setup_db_required:
|
||||
setup.setup_db(app)
|
||||
|
||||
if config.SERVER_MODE:
|
||||
app.wsgi_app = ReverseProxied(app.wsgi_app)
|
||||
|
||||
# Authentication sources
|
||||
if len(config.AUTHENTICATION_SOURCES) > 0:
|
||||
# Creating a temporary auth source list removing INTERNAL
|
||||
@@ -142,6 +139,9 @@ if 'PGADMIN_INT_KEY' in os.environ:
|
||||
else:
|
||||
app.PGADMIN_INT_KEY = ''
|
||||
|
||||
if not app.PGADMIN_RUNTIME:
|
||||
app.wsgi_app = ReverseProxied(app.wsgi_app)
|
||||
|
||||
|
||||
##########################################################################
|
||||
# The entry point
|
||||
|
||||
Reference in New Issue
Block a user