diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-04-13 01:55:42 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-04-13 01:55:42 -0700 |
| commit | a95e5ef8dd19fa7987027d9d0a77544ae5bf00a5 (patch) | |
| tree | 220999fa59d9178587ce662c8944dd2fab8fe969 | |
| parent | e137cfabd4fb306b02a04746a74a81b7c97c4a91 (diff) | |
remove sensitive
| -rw-r--r-- | app.py | 8 | ||||
| -rw-r--r-- | passwords.txt | 3 |
2 files changed, 7 insertions, 4 deletions
@@ -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 |
