Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Allow connections without password
Browse files Browse the repository at this point in the history
  • Loading branch information
S7evinK committed Apr 15, 2024
1 parent 43ebb23 commit 79cc737
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/scripts/ComplementPostgres.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ RUN apt-get update && apt-get install -y postgresql
WORKDIR /build

# No password when connecting over localhost
RUN sed -i "s%127.0.0.1/32 md5%127.0.0.1/32 trust%g" /etc/postgresql/15/main/pg_hba.conf && \
RUN sed -i "s%127.0.0.1/32 scram-sha-256%127.0.0.1/32 trust%g" /etc/postgresql/15/main/pg_hba.conf && \
sed -i "s%::1/128 scram-sha-256%::1/128 trust%g" /etc/postgresql/15/main/pg_hba.conf && \
# Bump up max conns for moar concurrency
sed -i 's/max_connections = 100/max_connections = 2000/g' /etc/postgresql/15/main/postgresql.conf

Expand Down

0 comments on commit 79cc737

Please sign in to comment.