aboutsummaryrefslogtreecommitdiff
path: root/config/authentic.cr
diff options
context:
space:
mode:
Diffstat (limited to 'config/authentic.cr')
-rw-r--r--config/authentic.cr11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/authentic.cr b/config/authentic.cr
new file mode 100644
index 0000000..b9efc31
--- /dev/null
+++ b/config/authentic.cr
@@ -0,0 +1,11 @@
+require "./server"
+
+Authentic.configure do |settings|
+ settings.secret_key = Lucky::Server.settings.secret_key_base
+
+ unless LuckyEnv.production?
+ # This value can be between 4 and 31
+ fastest_encryption_possible = 4
+ settings.encryption_cost = fastest_encryption_possible
+ end
+end