Merge pull request #10148 from ralmn/db-port

chore: expose postgres port
This commit is contained in:
Colin Darie 2024-05-15 16:12:36 +00:00 committed by GitHub
commit 9f359b4b99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -14,6 +14,7 @@ development:
host: <%= ENV["DB_HOST"] %> host: <%= ENV["DB_HOST"] %>
username: <%= ENV["DB_USERNAME"] %> username: <%= ENV["DB_USERNAME"] %>
password: <%= ENV["DB_PASSWORD"] %> password: <%= ENV["DB_PASSWORD"] %>
port: <%= ENV["DB_PORT"] || 5432 %>
# Workaround for https://github.com/ged/ruby-pg/issues/311 # Workaround for https://github.com/ged/ruby-pg/issues/311
gssencmode: disable gssencmode: disable
@ -23,6 +24,7 @@ test:
host: localhost host: localhost
username: tps_test username: tps_test
password: tps_test password: tps_test
port: <%= ENV["DB_PORT"] || 5432 %>
# Workaround for https://github.com/ged/ruby-pg/issues/311 # Workaround for https://github.com/ged/ruby-pg/issues/311
gssencmode: disable gssencmode: disable
@ -32,3 +34,4 @@ production: &production
host: <%= ENV["DB_HOST"] %> host: <%= ENV["DB_HOST"] %>
username: <%= ENV["DB_USERNAME"] %> username: <%= ENV["DB_USERNAME"] %>
password: <%= ENV["DB_PASSWORD"] %> password: <%= ENV["DB_PASSWORD"] %>
port: <%= ENV["DB_PORT"] || 5432 %>

View file

@ -22,6 +22,7 @@ DB_HOST="localhost"
DB_POOL="" DB_POOL=""
DB_USERNAME="tps_development" DB_USERNAME="tps_development"
DB_PASSWORD="tps_development" DB_PASSWORD="tps_development"
DB_PORT=5432
# Protect access to the instance with a static login/password (useful for staging environments) # Protect access to the instance with a static login/password (useful for staging environments)
BASIC_AUTH_ENABLED="disabled" BASIC_AUTH_ENABLED="disabled"