Skip to content

Commit

Permalink
Add non-template config files
Browse files Browse the repository at this point in the history
  • Loading branch information
alepbloyd committed Jan 9, 2024
1 parent 12d34a5 commit 1cdeb05
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/blacklight.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
development:
adapter: solr
url: <%= ENV['SOLR_URL'] %>:<%= ENV['SOLR_PORT'] %>/solr/<%= ENV['SOLR_CORE'] %>_dev
test: &test
adapter: solr
url: <%= ENV['SOLR_URL'] %>:<%= ENV['SOLR_PORT'] %>/solr/<%= ENV['SOLR_CORE'] %>_test
production:
adapter: solr
url: <%= ENV['SOLR_URL'] %>:<%= ENV['SOLR_PORT'] %>/solr/<%= ENV['SOLR_CORE'] %>
20 changes: 20 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
default: &default
adapter: postgresql
encoding: unicode
host: <%= ENV["HYRAX_DB_HOST"] %>
username: <%= ENV["HYRAX_DB_USER"] %>
password: <%= ENV["HYRAX_DB_PASSWORD"] %>
pool: 5
timeout: 5000

development:
database: <%= ENV["HYRAX_DB"] %>_dev
<<: *default

production:
database: <%= ENV["HYRAX_DB"] %>
<<: *default

test:
database: <%= ENV["HYRAX_DB"] %>_test
<<: *default
15 changes: 15 additions & 0 deletions config/fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
development:
user: <%= ENV['FEDORA_USERNAME'] %>
password: <%= ENV['FEDORA_PASSWORD'] %>
url: <%= ENV['FEDORA_URL'] %>:<%= ENV['FEDORA_PORT'] %>/<%= ENV['FEDORA_BASE'] %>
base_path: /dev
test:
user: <%= ENV['FEDORA_USERNAME'] %>
password: <%= ENV['FEDORA_PASSWORD'] %>
url: <%= ENV['FEDORA_URL'] %>:<%= ENV['FEDORA_PORT'] %>/<%= ENV['FEDORA_BASE'] %>
base_path: /test
production:
user: <%= ENV['FEDORA_USERNAME'] %>
password: <%= ENV['FEDORA_PASSWORD'] %>
url: <%= ENV['FEDORA_URL'] %>:<%= ENV['FEDORA_PORT'] %>/<%= ENV['FEDORA_BASE'] %>
base_path: /prod
22 changes: 22 additions & 0 deletions config/secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Be sure to restart your server when you modify this file.

# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!

# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
# You can use `rails secret` to generate a secure secret key.

# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.

development: &default
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

test:
<<: *default

# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
<<: *default
7 changes: 7 additions & 0 deletions config/solr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This is a sample config file that points to a solr server for each environment
development:
url: <%= ENV['SOLR_URL'] %>:<%= ENV['SOLR_PORT'] %>/solr/<%= ENV['SOLR_CORE'] %>_dev
test:
url: <%= ENV['SOLR_URL'] %>:<%= ENV['SOLR_PORT'] %>/solr/<%= ENV['SOLR_CORE'] %>_test
production:
url: <%= ENV['SOLR_URL'] %>:<%= ENV['SOLR_PORT'] %>/solr/<%= ENV['SOLR_CORE'] %>

0 comments on commit 1cdeb05

Please sign in to comment.