-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathconfig.cr
43 lines (33 loc) · 984 Bytes
/
config.cr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class AppDatabase < Avram::Database
end
# The specs for this shard don't actually make DB queries
AppDatabase.configure do |settings|
settings.credentials = Avram::Credentials.parse("postgres://fake:password@localhost:5432/not_used")
end
Avram.configure do |settings|
settings.database_to_migrate = AppDatabase
end
Lucky::ForceSSLHandler.configure do |settings|
settings.enabled = false
end
Lucky::Session.configure do |settings|
settings.key = "_authentic_session"
end
Lucky::ErrorHandler.configure do |settings|
settings.show_debug_output = true
end
Lucky::RouteHelper.configure do |settings|
settings.base_uri = "example.com"
end
Lucky::Server.configure do |settings|
settings.secret_key_base = Random::Secure.base64(32)
end
Lucky::Server.configure do |settings|
settings.host = "localhost"
settings.port = 3000
end
Authentic.configure do |settings|
settings.secret_key = "1" * 32
settings.encryption_cost = 4
end
Habitat.raise_if_missing_settings!