-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
64 lines (60 loc) · 1.51 KB
/
Copy pathserverless.yml
File metadata and controls
64 lines (60 loc) · 1.51 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# "org" ensures this Service is used with the correct Serverless Framework Access Key.
org: medinaorg
# "app" enables Serverless Framework Dashboard features and sharing them with other Services.
app: medinaorg
service: medinaConsultancy-api
provider:
name: aws
runtime: provided.al2023
architecture: x86_64
region: us-east-2
stage: ${opt:stage, 'dev'}
environment:
GOOGLE_PLACES_API_KEY: ${env:GOOGLE_PLACES_API_KEY}
DATABASE_URL: ${env:DATABASE_URL}
JWT_SECRET: ${env:JWT_SECRET}
MERCADO_PAGO_ACCESS_TOKEN: ${env:MERCADO_PAGO_ACCESS_TOKEN}
SUPABASE_URL: ${env:SUPABASE_URL}
SUPABASE_SERVICE_KEY: ${env:SUPABASE_SERVICE_KEY}
SUPABASE_BUCKET: ${env:SUPABASE_BUCKET}
httpApi:
cors:
allowedOrigins:
- "https://medina-consultancy-prod.vercel.app"
- "http://localhost:5173"
- "https://www.placeconsult.com.br"
- "https://placeconsult.com.br"
allowedHeaders:
- Content-Type
- Authorization
- Accept
allowedMethods:
- GET
- POST
- PUT
- DELETE
- OPTIONS
allowCredentials: true
functions:
api:
handler: bootstrap
timeout: 29
memorySize: 1024
events:
- httpApi:
path: /{proxy+}
method: ANY
billing:
handler: bootstrap
timeout: 900
memorySize: 512
environment:
HANDLER_MODE: billing
events:
- schedule:
rate: cron(0 6 1 * ? *)
enabled: true
package:
patterns:
- "!./**"
- bootstrap