-
Notifications
You must be signed in to change notification settings - Fork 12
Environment configuration
Naomichi Yamakita edited this page Aug 12, 2019
·
16 revisions
.env file, please define environment variables.
Environment name | Default | Required | Description |
---|---|---|---|
GITHUB_PEM | ~/ssh/id_rsa | Yes | Secret key for getting source code from GitHub. Public keys must be registered in Keys deploy . |
SECRET_KEY_BASE | Yes | Rails secret key. | |
AWS_REGION | ap-northeast-1 | Yes | |
AWS_ACCESS_KEY | No | Not recommended (*1) | |
AWS_SECRET_KEY | No | Not recommended (*1) | |
GITHUB_SECRET_KEY | No (*2) | Push used in request source authentication signature at deployment. | |
RAILS_ENV | development | Yes | |
RAILS_SERVE_STATIC_FILES | true | Yes | |
REDIS_HOST | redis | Yes | |
REDIS_PORT | 6379 | Yes | |
REDIS_DB | 0 | Yes | |
SLACK_CLIENT_ID | No (*3) | ||
SLACK_CLIENT_SECRET | No (*3) | ||
SLACK_API_TOKEN | No (*3) | ||
SLACK_VERIFICATION_TOKEN | No (*3) | ||
SLACK_CHANNEL | No (*3) | Slack notification channel | |
GENOVA_URL | http://localhost:3000 | Yes | Console URL |
MONGO_HOST | mongo | Yes | |
MONGO_PORT | 27017 | Yes | |
MONGO_DB | bot-server_development | Yes | |
MONGO_DB_TEST | bot-server_test | Yes |
- ※1: Attach following policy to user or instance.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "genova",
"Effect": "Allow",
"Action": [
"iam:GetRole",
"iam:PassRole",
"sts:GetCallerIdentity"
"kms:*",
"ecs:*",
"ecr:*",
"events:*",
],
"Resource": "*"
}
]
}
- ※2: Required if using GitHub deployment.
- ※3: Required if using Slack deployment. Value can be checked with slack app console.