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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# File 'lib/jets/application/default_config.rb', line 3
def default_config
config = ActiveSupport::OrderedOptions.new
config.project_name = parse_project_name
config.cors = false
config.autoload_paths = default_autoload_paths
config. = []
config.logger = Jets::Logger.new($stderr)
config.function = ActiveSupport::OrderedOptions.new
config.function.timeout = 30
config.function.memory_size = 1536
config.prewarm = ActiveSupport::OrderedOptions.new
config.prewarm.enable = true
config.prewarm.rate = '30 minutes'
config.prewarm.concurrency = 2
config.prewarm.public_ratio = 3
config.prewarm.rack_ratio = 5
config.gems = ActiveSupport::OrderedOptions.new
config.gems.sources = [
Jets.default_gems_source
]
config.inflections = ActiveSupport::OrderedOptions.new
config.inflections.irregular = {}
config.assets = ActiveSupport::OrderedOptions.new
config.assets.folders = %w[assets images packs]
config.assets.base_url = nil
config.assets.max_age = 3600
config.assets.cache_control = nil
config.ruby = ActiveSupport::OrderedOptions.new
config.middleware = Jets::Middleware::Configurator.new
config.session = ActiveSupport::OrderedOptions.new
config.session.store = Rack::Session::Cookie
config.session.options = {}
config.api = ActiveSupport::OrderedOptions.new
config.api.authorization_type = "NONE"
config.api.cors_authorization_type = nil
config.api.binary_media_types = ['multipart/form-data']
config.api.endpoint_type = 'EDGE'
config.domain = ActiveSupport::OrderedOptions.new
config.domain.endpoint_type = "REGIONAL"
config.domain.route53 = true
config.lambda = ActiveSupport::OrderedOptions.new
config.lambda.layers = []
config.encoding = ActiveSupport::OrderedOptions.new
config.encoding.default = "utf-8"
config.s3_event = ActiveSupport::OrderedOptions.new
config.s3_event.configure_bucket = true
config.s3_event.notification_configuration = {
topic_configurations: [
{
events: ["s3:ObjectCreated:*"],
topic_arn: "!Ref SnsTopic",
},
],
}
config
end
|