From 820d2d8c5126457b8a7701f66f6863f573e3e110 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sat, 10 May 2025 17:44:27 -0500 Subject: [PATCH] move secret related contstants to Config class --- app.rb | 2 -- lib/config.rb | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app.rb b/app.rb index 87c870c..1332d3c 100644 --- a/app.rb +++ b/app.rb @@ -24,8 +24,6 @@ require "config" VERSION = "0.2.1" CHUNK_SIZE = 1024**2 -SESSION_SECRET_HEX_LENGTH = 64 -JWT_SECRET_HEX_LENGTH = 64 DEFAULT_FLAKEY = 50 NAME = "kubernaut".freeze diff --git a/lib/config.rb b/lib/config.rb index 66662ea..017f43e 100644 --- a/lib/config.rb +++ b/lib/config.rb @@ -1,5 +1,8 @@ require "sensitive" +SESSION_SECRET_HEX_LENGTH = 64 +JWT_SECRET_HEX_LENGTH = 64 + class Config attr_accessor :cat