|
| 1 | +Jets.application.configure do |
| 2 | + config.project_name = "serverless-ruby-simple-apis" |
| 3 | + config.mode = "api" |
| 4 | + |
| 5 | + config.prewarm.enable = true # default is true |
| 6 | + # config.prewarm.rate = '30 minutes' # default is '30 minutes' |
| 7 | + # config.prewarm.concurrency = 2 # default is 2 |
| 8 | + # config.prewarm.public_ratio = 3 # default is 3 |
| 9 | + |
| 10 | + # config.env_extra = 2 # can also set this with JETS_ENV_EXTRA |
| 11 | + # config.extra_autoload_paths = [] |
| 12 | + |
| 13 | + # config.asset_base_url = 'https://cloudfront.domain.com/assets' # example |
| 14 | + |
| 15 | + # config.cors = true # for '*'' # defaults to false |
| 16 | + # config.cors = '*.mydomain.com' # for specific domain |
| 17 | + |
| 18 | + # config.function.timeout = 30 # defaults to 30 |
| 19 | + # config.function.role = "arn:aws:iam::#{Jets.aws.account}:role/service-role/pre-created" |
| 20 | + # config.function.memory_size = 1536 |
| 21 | + |
| 22 | + # config.api.endpoint_type = 'PRIVATE' # Default is 'EDGE' (https://docs.aws.amazon.com/apigateway/api-reference/link-relation/restapi-create/#endpointConfiguration) |
| 23 | + |
| 24 | + # config.function.environment = { |
| 25 | + # global_app_key1: "global_app_value1", |
| 26 | + # global_app_key2: "global_app_value2", |
| 27 | + # } |
| 28 | + # More examples: |
| 29 | + # config.function.dead_letter_queue = { target_arn: "arn" } |
| 30 | + # config.function.vpc_config = { |
| 31 | + # security_group_ids: [ "sg-1", "sg-2" ], |
| 32 | + # subnet_ids: [ "subnet-1", "subnet-2" ] |
| 33 | + # } |
| 34 | + # The config.function settings to the CloudFormation Lambda Function properties. |
| 35 | + # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html |
| 36 | + # Underscored format can be used for keys to make it look more ruby-ish. |
| 37 | + |
| 38 | + # Assets settings |
| 39 | + # The config.assets.folders are folders within the public folder that will be set |
| 40 | + # to public-read on s3 and served directly. IE: public/assets public/images public/packs |
| 41 | + # config.assets.folders = %w[assets images packs] |
| 42 | + # config.assets.max_age = 3600 # when to expire assets |
| 43 | + # config.assets.cache_control = nil # IE: "public, max-age=3600" # override max_age for more fine-grain control. |
| 44 | + # config.assets.base_url = nil # IE: https://cloudfront.com/my/base/path, defaults to the s3 bucket url |
| 45 | + # IE: https://s3-us-west-2.amazonaws.com/demo-dev-s3bucket-1inlzkvujq8zb |
| 46 | + |
| 47 | + # config.api.endpoint_type = 'PRIVATE' # Default is 'EDGE' https://amzn.to/2r0Iu2L |
| 48 | + # config.api.authorization_type = "AWS_IAM" # default is 'NONE' https://amzn.to/2qZ7zLh |
| 49 | + |
| 50 | + |
| 51 | + # config.domain.hosted_zone_name = "example.com" |
| 52 | + # us-west-2 REGIONAL endpoint |
| 53 | + # config.domain.cert_arn = "arn:aws:acm:us-west-2:112233445566:certificate/8d8919ce-a710-4050-976b-b33da991e123" |
| 54 | + # us-east-1 EDGE endpoint |
| 55 | + # config.domain.cert_arn = "arn:aws:acm:us-east-1:112233445566:certificate/d68472ba-04f8-45ba-b9db-14f839d57123" |
| 56 | + # config.domain.endpoint_type = "EDGE" |
| 57 | + |
| 58 | + # By default logger needs to log to $stderr for CloudWatch to receive Lambda messages, but for |
| 59 | + # local testing environment you may want to log these messages to 'test.log' file to keep your |
| 60 | + # testing suite output readable. |
| 61 | + # config.logger = Jets::Logger.new($strerr) |
| 62 | +end |
0 commit comments