From cb6e7f22750f62789fbd59700ae5043ea3ba7ffd Mon Sep 17 00:00:00 2001 From: icyleaf Date: Thu, 26 Sep 2024 06:16:35 +0000 Subject: [PATCH] feat: add config.env --- config.env | 5 +++++ config/database.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 config.env diff --git a/config.env b/config.env new file mode 100644 index 00000000..17522eb6 --- /dev/null +++ b/config.env @@ -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 diff --git a/config/database.yml b/config/database.yml index 72314158..1405b812 100644 --- a/config/database.yml +++ b/config/database.yml @@ -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: