summaryrefslogtreecommitdiff
path: root/config/initializers/ecs_00.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/ecs_00.rb')
-rw-r--r--config/initializers/ecs_00.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/config/initializers/ecs_00.rb b/config/initializers/ecs_00.rb
index fa7a179..6869046 100644
--- a/config/initializers/ecs_00.rb
+++ b/config/initializers/ecs_00.rb
@@ -1,17 +1,17 @@
-# Copyright (C) 2007, 2008, 2009, 2010 Heiko Bernloehr (FreeIT.de).
-#
+# Copyright (C) 2007, 2008, 2009, 2010, 2018 Heiko Bernloehr (FreeIT.de).
+#
# This file is part of ECS.
-#
+#
# ECS is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
-#
+#
# ECS is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Affero General Public License for more details.
-#
+#
# You should have received a copy of the GNU Affero General Public
# License along with ECS. If not, see <http://www.gnu.org/licenses/>.
@@ -38,3 +38,5 @@ end
ECS_CONFIG["participants"]["allow_anonymous"] ||= false
ECS_CONFIG["participants"]["allow_events"] ||= true
ECS_CONFIG["admin"]["confirm_actions"] ||= true
+ECS_CONFIG["participants"]["ttl_sub"] = ENV["ECS_PARTICIPANTS_TTL_SUB"] || ECS_CONFIG["participants"]["ttl_sub"] || 1
+ECS_CONFIG["participants"]["ttl_anonymous"] = ENV["ECS_PARTICIPANTS_TTL_ANONYMOUS"] || ECS_CONFIG["participants"]["ttl_anonymous"] || 1