Skip to content

Commit

Permalink
set sslmode paramater and other connection options to be configurable (
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMandal0rian authored Aug 30, 2023
1 parent 1941411 commit d25f7fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ ENV postgres_host ""
ENV postgres_user ""
ENV postgres_pass ""
ENV postgres_db ""
ENV postgres_args "sslmode=prefer"
# The full URL to the IPFS node
ENV ipfs ""
# The etherum network(s) to connect to. Set this to a space-separated
Expand Down
2 changes: 1 addition & 1 deletion docker/start
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ run_graph_node() {
else
unset GRAPH_NODE_CONFIG
postgres_port=${postgres_port:-5432}
postgres_url="postgresql://$postgres_user:$postgres_pass@$postgres_host:$postgres_port/$postgres_db?sslmode=prefer"
postgres_url="postgresql://$postgres_user:$postgres_pass@$postgres_host:$postgres_port/$postgres_db?$postgres_args"

wait_for_ipfs "$ipfs"
echo "Waiting for Postgres ($postgres_host:$postgres_port)"
Expand Down

0 comments on commit d25f7fe

Please sign in to comment.