Skip to content

Commit

Permalink
feat: add config.env
Browse files Browse the repository at this point in the history
icyleaf committed Sep 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 64f5033 commit cb6e7f2
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions config.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Check enviroment varibles document:
# https://zealot.ews.im/docs/self-hosted/configuration/environment-variables
#
# Sample .env file:
# https://github.com/tryzealot/zealot-docker/blob/main/config.env
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ default: &default
username: <%= ENV['ZEALOT_POSTGRES_USERNAME'] || 'zealot' %>
password: <%= ENV['ZEALOT_POSTGRES_PASSWORD'] || '' %>
database: <%= (host = ENV['ZEALOT_POSTGRES_DB_NAME'] || 'zealot'; case ENV['RAILS_ENV'] when 'test' then "#{host}_test"; when 'production' then host else "#{host}_development"; end) %>
sslmode: <%= ENV['ZEALOT_POSTGRES_SSLMODE'] || 'none' %>
sslmode: <%= ENV['ZEALOT_POSTGRES_SSLMODE'] || 'disable' %>
<% end %>

development:

0 comments on commit cb6e7f2

Please sign in to comment.