From a95e5ef8dd19fa7987027d9d0a77544ae5bf00a5 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 13 Apr 2024 01:55:42 -0700 Subject: remove sensitive --- app.py | 8 ++++---- passwords.txt | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 passwords.txt diff --git a/app.py b/app.py index feb54b5..43ce384 100644 --- a/app.py +++ b/app.py @@ -30,10 +30,10 @@ def create_database_connection(): Creates a database connection using the environment variables :param: auth_append: str = "" - If you want to use a different set of variables for persisitance of sessions """ - hostname = "***REMOVED***" - user = "***REMOVED***" - password = "***REMOVED***" - database = "postgres" + hostname = os.environ.get("POSTGRES_HOST") + user = os.environ.get("POSTGRES_USER") + password = os.environ.get("POSTGRES_PASSWORD") + database = os.environ.get("POSTGRES_DATABASE") return PostgresHandler(host_name=hostname, username=user, password=password, database=database, port=5432) @app.route("/") diff --git a/passwords.txt b/passwords.txt new file mode 100644 index 0000000..79d5880 --- /dev/null +++ b/passwords.txt @@ -0,0 +1,3 @@ +***REMOVED*** +***REMOVED*** +***REMOVED*** \ No newline at end of file -- cgit v1.2.3