-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
49 lines (43 loc) · 1023 Bytes
/
serverless.yml
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
org: ruben20tech
app: treasure-hunt
service: treasure-hunt
frameworkVersion: "3"
plugins:
- serverless-python-requirements
- serverless-offline
- serverless-dotenv-plugin
# I'm using the dotenv plugin, so no need for built-in .env resolution
useDotenv: false
provider:
name: aws
runtime: python3.9
enviroment:
# .env is automatically loaded
# httpApi:
# # Allows all domains
# cors:
# allowedOrigins:
# - http://localhost:3000
# - https://ruben30.com
# # allowedHeaders:
# # - Content-Type
# # - Authorization
# # allowCredentials: true
# # exposedResponseHeaders:
# # - Special-Response-Header
# # maxAge: 6000 # In seconds
custom:
pythonRequirements:
dockerizePip: non-linux
serverless-offline:
prefix: ""
# We don't care about /dev etc
noPrependStageInUrl: true
functions:
api:
handler: app.handler
events:
- httpApi:
method: "*"
path: /{proxy+}
timeout: 20