-
Notifications
You must be signed in to change notification settings - Fork 12
Environment configuration
Naomichi Yamakita edited this page Nov 4, 2019
·
16 revisions
Please define environment variables in .env
.
Environment name | Default | Required | Description |
---|---|---|---|
AWS_ACCESS_KEY | No | (*1) | |
AWS_REGION | ap-northeast-1 | Yes | |
AWS_SECRET_KEY | No | (*1) | |
DOCKER_RESTART | always | Yes | Docker restart mode |
GENOVA_URL | http://localhost:3000 | Yes | Console URL |
GITHUB_ACCOUNT | Yes | Account name of GitHub | |
GITHUB_PEM | ~/ssh/id_rsa | Yes | Secret key for getting source code from GitHub. Public keys must be registered in Keys deploy . |
GITHUB_SECRET_KEY | No (*2) | GitHub Webhook secret key | |
REDIS_DB | 0 | Yes | |
REDIS_HOST | redis | Yes | |
REDIS_PORT | 6379 | Yes | |
RAILS_ENV | production | Yes | |
MONGO_DB | bot-server_development | Yes | |
MONGO_DB_TEST | bot-server_test | Yes | |
MONGO_HOST | mongo | Yes | |
MONGO_PORT | 27017 | Yes | |
SECRET_KEY_BASE | Yes | Rails secret key. | |
SLACK_API_TOKEN | No (*3) | ||
SLACK_CHANNEL | No (*3) | Slack notification channel | |
SLACK_CLIENT_ID | No (*3) | ||
SLACK_CLIENT_SECRET | No (*3) | ||
SLACK_HOST | slack | No | |
SLACK_PORT | 9292 | No | |
SLACK_VERIFICATION_TOKEN | No (*3) |
- ※1: Do not recommend using access key. Please use IAM role.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "genova",
"Effect": "Allow",
"Action": [
"iam:GetRole",
"iam:PassRole",
"sts:GetCallerIdentity"
"kms:*",
"ecs:*",
"ecr:*",
"events:*",
],
"Resource": "*"
}
]
}
- ※2: When auto-deployment with GitHub Webhook.
- ※3: When deploying Slack.