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:
Aditya Toshniwal
2022-11-14 18:58:36 +05:30
committed by GitHub
parent e701da7390
commit 998c0cb7b3
3 changed files with 10 additions and 6 deletions
+3 -3
View File
@@ -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