mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Rename some internal environment variables that could conflict with Kubernetes. Fixes #4999.
This commit is contained in:
@@ -28,7 +28,7 @@ class AppStarter:
|
||||
""" This function start the subprocess to start pgAdmin app """
|
||||
random_server_port = str(random.randint(10000, 65535))
|
||||
env = {
|
||||
"PGADMIN_PORT": random_server_port,
|
||||
"PGADMIN_INT_PORT": random_server_port,
|
||||
"SQLITE_PATH": str(self.app_config.TEST_SQLITE_PATH)
|
||||
}
|
||||
env.update(os.environ)
|
||||
|
||||
@@ -106,7 +106,7 @@ config.CONSOLE_LOG_LEVEL = WARNING
|
||||
# Create the app
|
||||
app = create_app()
|
||||
|
||||
app.PGADMIN_KEY = ''
|
||||
app.PGADMIN_INT_KEY = ''
|
||||
app.config.update({'SESSION_COOKIE_DOMAIN': None})
|
||||
driver = None
|
||||
app_starter = None
|
||||
|
||||
Reference in New Issue
Block a user