move secret related contstants to Config class
This commit is contained in:
parent
eb5c12ca91
commit
820d2d8c51
2
app.rb
2
app.rb
@ -24,8 +24,6 @@ require "config"
|
|||||||
VERSION = "0.2.1"
|
VERSION = "0.2.1"
|
||||||
|
|
||||||
CHUNK_SIZE = 1024**2
|
CHUNK_SIZE = 1024**2
|
||||||
SESSION_SECRET_HEX_LENGTH = 64
|
|
||||||
JWT_SECRET_HEX_LENGTH = 64
|
|
||||||
DEFAULT_FLAKEY = 50
|
DEFAULT_FLAKEY = 50
|
||||||
|
|
||||||
NAME = "kubernaut".freeze
|
NAME = "kubernaut".freeze
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
require "sensitive"
|
require "sensitive"
|
||||||
|
|
||||||
|
SESSION_SECRET_HEX_LENGTH = 64
|
||||||
|
JWT_SECRET_HEX_LENGTH = 64
|
||||||
|
|
||||||
class Config
|
class Config
|
||||||
attr_accessor :cat
|
attr_accessor :cat
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user