-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
32 lines (27 loc) · 767 Bytes
/
Copy pathserverless.yml
File metadata and controls
32 lines (27 loc) · 767 Bytes
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
service: fullThrottle
plugins:
- serverless-wsgi
- serverless-python-requirements
custom:
wsgi:
app: app.app
customStage: ${opt:stage, self:provider.stage}
customEnvironment:
HASURA_GRAPHQL_ENDPOINT:
prod: https://full-throttle-sutirth.herokuapp.com/v1/graphql
HASURA_ADMIN_SECRET:
prod: test
provider:
name: aws
runtime: python3.6
stage: ${opt:stage, 'prod'}
environment:
HASURA_GRAPHQL_ENDPOINT: ${self:custom.customEnvironment.HASURA_GRAPHQL_ENDPOINT.${self:custom.customStage}}
HASURA_ADMIN_SECRET: ${self:custom.customEnvironment.HASURA_ADMIN_SECRET.${self:custom.customStage}}
functions:
app:
handler: wsgi_handler.handler
timeout: 15
events:
- http: ANY /
- http: "ANY {proxy+}"