-
Notifications
You must be signed in to change notification settings - Fork 1
/
locals.tf
43 lines (43 loc) · 1.9 KB
/
locals.tf
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
locals {
lambda_function_environment_variables = {
MAINTENANCE_MODE = "0"
APP_NAME = "DocFunc"
APP_ENV = "production"
APP_KEY = var.app_key
APP_DEBUG = "false"
APP_URL = var.app_url
APP_TIMEZONE = "Asia/Taipei"
APP_LOCALE = "zh_TW"
ASSET_URL = var.asset_url
DB_CONNECTION = "pgsql"
DB_HOST = var.database_host
DB_PORT = var.database_port
DB_DATABASE = var.database_name
DB_USERNAME = var.database_username
DB_PASSWORD = var.database_password
DB_SSLMODE = var.database_sslmode
CACHE_STORE = "dynamodb"
DYNAMODB_CACHE_TABLE = aws_dynamodb_table.cache_table.name
SESSION_DRIVER = "dynamodb"
SESSION_LIFETIME = "120"
QUEUE_CONNECTION = "sqs"
SQS_QUEUE = aws_sqs_queue.jobs_queue.url
FILESYSTEM_DISK = "s3"
AWS_BUCKET = var.aws_bucket
AWS_URL = var.aws_url
AWS_USE_PATH_STYLE_ENDPOINT = "false"
CAPTCHA_SITE_KEY = var.captcha_site_key
CAPTCHA_SECRET_KEY = var.captcha_secret_key
MAIL_MAILER = "smtp"
MAIL_HOST = "live.smtp.mailtrap.io"
MAIL_PORT = "587"
MAIL_USERNAME = "api"
MAIL_PASSWORD = var.mail_password
MAIL_ENCRYPTION = "tls"
MAIL_FROM_ADDRESS = "[email protected]"
MAIL_FROM_NAME = "DocFunc"
SCOUT_PREFIX = var.scout_prefix
ALGOLIA_APP_ID = var.algolia_app_id
ALGOLIA_SECRET = var.algolia_secret
}
}