generated from grrr-amsterdam/lumen-microservice-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
54 lines (50 loc) · 1.3 KB
/
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
50
51
52
53
54
service: ContentDecryptor
configValidationMode: error
useDotenv: true
provider:
name: aws
region: ${env:AWS_LAMBDA_REGION}
stage: ${opt:stage, 'development'}
runtime: provided.al2
role: ${env:SERVERLESS_ROLE}
timeout: 30
lambdaHashingVersion: 20201221
deploymentBucket:
name: ${env:SERVERLESS_DEPLOYMENTS_BUCKET}
environment:
APP_NAME: ${env:APP_NAME}
APP_ENV: ${env:APP_ENV}
APP_KEY: ${env:APP_KEY}
APP_DEBUG: ${env:APP_DEBUG}
APP_URL: ${env:APP_URL}
APP_TIMEZONE: ${env:APP_TIMEZONE}
APP_STORAGE: ${env:APP_STORAGE}
LOG_CHANNEL: ${env:LOG_CHANNEL}
VIEW_COMPILED_PATH: ${env:VIEW_COMPILED_PATH}
SESSION_DRIVER: ${env:SESSION_DRIVER}
SENTRY_DSN: ${env:SENTRY_DSN}
PASSWORD_PROTECTION_PASSWORD_SALT: ${env:PASSWORD_PROTECTION_PASSWORD_SALT}
PASSWORD_PROTECTION_CONTENT_KEY: ${env:PASSWORD_PROTECTION_CONTENT_KEY}
package:
exclude:
- .env
- .env.staging
- .env.production
- node_modules/**
- public/storage
- resources/assets/**
- storage/**
- tests/**
functions:
main:
handler: public/index.php
description: "Process all HTTP requests."
layers:
- ${bref:layer.php-80-fpm}
events:
- http:
path: /{proxy+}
method: any
cors: true
plugins:
- ./vendor/bref/bref