Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PostgreSQL connection configs #25

Merged
merged 1 commit into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions .env.tpl
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# $ op inject -i .env.tpl -o .env

PG_HOST_DEVELOPMENT=op://Personal/7osscqrsds2jmobocq2twd5pjq/yl3pacrx662v4yd7vxmhypw52i
PG_PORT_DEVELOPMENT=op://Personal/7osscqrsds2jmobocq2twd5pjq/port
PG_USER_DEVELOPMENT=op://Personal/7osscqrsds2jmobocq2twd5pjq/username
PG_PASS_DEVELOPMENT=op://Personal/7osscqrsds2jmobocq2twd5pjq/password
PG_DEVELOPMENT_HOST=op://Personal/7osscqrsds2jmobocq2twd5pjq/yl3pacrx662v4yd7vxmhypw52i
PG_DEVELOPMENT_PORT=op://Personal/7osscqrsds2jmobocq2twd5pjq/port
PG_DEVELOPMENT_USER=op://Personal/7osscqrsds2jmobocq2twd5pjq/username
PG_DEVELOPMENT_PASS=op://Personal/7osscqrsds2jmobocq2twd5pjq/password

PG_HOST_TEST=op://Personal/7osscqrsds2jmobocq2twd5pjq/yl3pacrx662v4yd7vxmhypw52i
PG_PORT_TEST=op://Personal/7osscqrsds2jmobocq2twd5pjq/port
PG_USER_TEST=op://Personal/7osscqrsds2jmobocq2twd5pjq/username
PG_PASS_TEST=op://Personal/7osscqrsds2jmobocq2twd5pjq/password
PG_TEST_HOST=op://Personal/7osscqrsds2jmobocq2twd5pjq/yl3pacrx662v4yd7vxmhypw52i
PG_TEST_PORT=op://Personal/7osscqrsds2jmobocq2twd5pjq/port
PG_TEST_USER=op://Personal/7osscqrsds2jmobocq2twd5pjq/username
PG_TEST_PASS=op://Personal/7osscqrsds2jmobocq2twd5pjq/password

PG_HOST_PRODUCTION=op://Personal/irwrv7xiofnmimbcdz7d3wclqi/hostname
PG_PORT_PRODUCTION=op://Personal/irwrv7xiofnmimbcdz7d3wclqi/port
PG_USER_PRODUCTION=op://Personal/irwrv7xiofnmimbcdz7d3wclqi/username
PG_PASS_PRODUCTION=op://Personal/irwrv7xiofnmimbcdz7d3wclqi/password
PG_PRODUCTION_HOST=op://Personal/irwrv7xiofnmimbcdz7d3wclqi/hostname
PG_PRODUCTION_PORT=op://Personal/irwrv7xiofnmimbcdz7d3wclqi/port
PG_PRODUCTION_USER=op://Personal/irwrv7xiofnmimbcdz7d3wclqi/username
PG_PRODUCTION_PASS=op://Personal/irwrv7xiofnmimbcdz7d3wclqi/password
PG_SSLCERT_PATH=
PG_SSLKEY_PATH=
PG_SSLROOT_PATH=
24 changes: 12 additions & 12 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ default: &default
development:
<<: *default
database: suikoden_vault_development
host: <%= ENV.fetch('PG_HOST_DEVELOPMENT') || 'localhost' %>
port: <%= ENV.fetch('PG_PORT_DEVELOPMENT') || 5432 %>
username: <%= ENV.fetch('PG_USER_DEVELOPMENT') || 'root' %>
password: <%= ENV.fetch('PG_PASS_DEVELOPMENT') || 'postgres' %>
host: <%= ENV.fetch('PG_DEVELOPMENT_HOST') || 'localhost' %>
port: <%= ENV.fetch('PG_DEVELOPMENT_PORT') || 5432 %>
username: <%= ENV.fetch('PG_DEVELOPMENT_USER') || 'root' %>
password: <%= ENV.fetch('PG_DEVELOPMENT_PASS') || 'postgres' %>

test:
<<: *default
database: suikoden_vault_test
host: <%= ENV.fetch('PG_HOST_TEST') || 'localhost' %>
port: <%= ENV.fetch('PG_PORT_TEST') || 5432 %>
username: <%= ENV.fetch('PG_USER_TEST') || 'root' %>
password: <%= ENV.fetch('PG_PASS_TEST') || 'postgres' %>
host: <%= ENV.fetch('PG_TEST_HOST') || 'localhost' %>
port: <%= ENV.fetch('PG_TEST_PORT') || 5432 %>
username: <%= ENV.fetch('PG_TEST_USER') || 'root' %>
password: <%= ENV.fetch('PG_TEST_PASS') || 'postgres' %>

production:
<<: *default
database: suikoden_vault_production
host: <%= ENV.fetch('PG_HOST_PRODUCTION') || 'localhost' %>
port: <%= ENV.fetch('PG_PORT_PRODUCTION') || 5432 %>
username: <%= ENV.fetch('PG_USER_PRODUCTION') %>
password: <%= ENV.fetch('PG_PASS_PRODUCTION') %>
host: <%= ENV.fetch('PG_PRODUCTION_HOST') || 'localhost' %>
port: <%= ENV.fetch('PG_PRODUCTION_PORT') || 5432 %>
username: <%= ENV.fetch('PG_PRODUCTION_USER') %>
password: <%= ENV.fetch('PG_PRODUCTION_PASS') %>
sslmode: verify-ca
sslcert: <%= ENV.fetch('PG_SSLCERT_PATH') || 'config/postgresql/client.crt' %>
sslkey: <%= ENV.fetch('PG_SSLKEY_PATH') || 'config/postgresql/client.key' %>
Expand Down