2020-11-20 06:11:00 +01:00
|
|
|
{
|
2020-12-04 00:51:37 +01:00
|
|
|
"family": "posthog-production-web",
|
2020-11-20 06:11:00 +01:00
|
|
|
"networkMode": "awsvpc",
|
|
|
|
"executionRoleArn": "posthog-production-ecs-task",
|
|
|
|
"taskRoleArn": "posthog-production-ecs-task",
|
|
|
|
"containerDefinitions": [
|
|
|
|
{
|
|
|
|
"name": "posthog-production",
|
|
|
|
"portMappings": [
|
|
|
|
{
|
|
|
|
"containerPort": 8000,
|
|
|
|
"protocol": "tcp"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"logConfiguration": {
|
|
|
|
"logDriver": "awslogs",
|
|
|
|
"options": {
|
|
|
|
"awslogs-group": "awslogs-posthog-production",
|
|
|
|
"awslogs-region": "us-east-1",
|
|
|
|
"awslogs-stream-prefix": "posthog-production"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"essential": true,
|
|
|
|
"environment": [
|
2020-12-05 02:44:02 +01:00
|
|
|
{
|
|
|
|
"name": "USING_PGBOUNCER",
|
|
|
|
"value": "True"
|
|
|
|
},
|
2020-12-07 22:35:15 +01:00
|
|
|
{
|
|
|
|
"name": "DISABLE_SERVER_SIDE_CURSORS",
|
|
|
|
"value": "True"
|
|
|
|
},
|
2020-11-20 06:11:00 +01:00
|
|
|
{
|
|
|
|
"name": "CLICKHOUSE_ASYNC",
|
|
|
|
"value": "False"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "CLICKHOUSE_DATABASE",
|
|
|
|
"value": "posthog"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "CLICKHOUSE_ENABLE_STORAGE_POLICY",
|
|
|
|
"value": "True"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "CLICKHOUSE_REPLICATION",
|
|
|
|
"value": "True"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "CLICKHOUSE_SECURE",
|
|
|
|
"value": "True"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "CLICKHOUSE_VERIFY",
|
|
|
|
"value": "True"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "EVENT_USAGE_CACHING_TTL",
|
|
|
|
"value": "3600"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "INCLUDE_DOCS",
|
|
|
|
"value": "1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "IS_BEHIND_PROXY",
|
|
|
|
"value": "True"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "DISABLE_SECURE_SSL_REDIRECT",
|
|
|
|
"value": "True"
|
|
|
|
},
|
|
|
|
{
|
2020-12-04 00:51:37 +01:00
|
|
|
"name": "KAFKA_BASE64_KEYS",
|
|
|
|
"value": "True"
|
2020-11-20 06:11:00 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "PRIMARY_DB",
|
|
|
|
"value": "clickhouse"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SITE_URL",
|
2020-12-04 01:16:32 +01:00
|
|
|
"value": "https://app.posthog.com"
|
2020-12-16 16:48:41 +01:00
|
|
|
},
|
2021-01-05 10:48:20 +01:00
|
|
|
{
|
|
|
|
"name": "EMAIL_DEFAULT_FROM",
|
|
|
|
"value": "hey@posthog.com"
|
2021-01-11 13:25:40 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "DEPLOYMENT",
|
|
|
|
"value": "Posthog Cloud"
|
2021-01-20 13:53:45 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "CLICKHOUSE_DENORMALIZED_PROPERTIES",
|
|
|
|
"value": "issampledevent,currentscreen,objectname"
|
2021-02-11 18:42:39 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "BILLING_TRIAL_DAYS",
|
|
|
|
"value": "0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "BILLING_NO_PLAN_EVENT_ALLOCATION",
|
|
|
|
"value": "10000"
|
2021-03-16 11:27:58 +01:00
|
|
|
},
|
2021-03-23 21:12:06 +01:00
|
|
|
{
|
|
|
|
"name": "TRUST_ALL_PROXIES",
|
|
|
|
"value": "True"
|
|
|
|
},
|
2021-03-16 11:27:58 +01:00
|
|
|
{
|
|
|
|
"name": "ASYNC_EVENT_PROPERTY_USAGE",
|
|
|
|
"value": "1"
|
2021-05-20 12:42:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "CAPTURE_INTERNAL_METRICS",
|
|
|
|
"value": "True"
|
2021-06-18 16:32:29 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "PLUGIN_SERVER_ACTION_MATCHING",
|
2021-06-19 02:40:49 +02:00
|
|
|
"value": "1"
|
2020-11-20 06:11:00 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"secrets": [
|
|
|
|
{
|
|
|
|
"name": "CLICKHOUSE_CA",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:CLICKHOUSE_CA::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "CLICKHOUSE_HOST",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:CLICKHOUSE_HOST::"
|
|
|
|
},
|
2021-05-05 13:38:39 +02:00
|
|
|
{
|
|
|
|
"name": "CLICKHOUSE_MIGRATION_HOSTS",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:CLICKHOUSE_MIGRATION_HOSTS::"
|
|
|
|
},
|
2020-11-20 06:11:00 +01:00
|
|
|
{
|
|
|
|
"name": "CLICKHOUSE_PASSWORD",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:CLICKHOUSE_PASSWORD::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "DATABASE_URL",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:DATABASE_URL::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "EMAIL_HOST",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:EMAIL_HOST::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "EMAIL_HOST_PASSWORD",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:EMAIL_HOST_PASSWORD::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "EMAIL_HOST_USER",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:EMAIL_HOST_USER::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "EMAIL_PORT",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:EMAIL_PORT::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "EMAIL_USE_TLS",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:EMAIL_USE_TLS::"
|
|
|
|
},
|
|
|
|
{
|
2020-12-04 00:51:37 +01:00
|
|
|
"name": "KAFKA_CLIENT_CERT_B64",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:KAFKA_CLIENT_CERT_B64::"
|
2020-11-20 06:11:00 +01:00
|
|
|
},
|
|
|
|
{
|
2020-12-04 00:51:37 +01:00
|
|
|
"name": "KAFKA_CLIENT_CERT_KEY_B64",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:KAFKA_CLIENT_CERT_KEY_B64::"
|
2020-11-20 06:11:00 +01:00
|
|
|
},
|
|
|
|
{
|
2020-12-04 00:51:37 +01:00
|
|
|
"name": "KAFKA_TRUSTED_CERT_B64",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:KAFKA_TRUSTED_CERT_B64::"
|
2020-11-20 06:11:00 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "KAFKA_URL",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:KAFKA_URL::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "POSTHOG_PERSONAL_API_KEY",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:POSTHOG_PERSONAL_API_KEY::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "REDIS_URL",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:REDIS_URL::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SECRET_KEY",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:SECRET_KEY::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SENTRY_DSN",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:SENTRY_DSN::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SOCIAL_AUTH_GITHUB_KEY",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:SOCIAL_AUTH_GITHUB_KEY::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SOCIAL_AUTH_GITHUB_SECRET",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:SOCIAL_AUTH_GITHUB_SECRET::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SOCIAL_AUTH_GITLAB_KEY",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:SOCIAL_AUTH_GITLAB_KEY::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SOCIAL_AUTH_GITLAB_SECRET",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:SOCIAL_AUTH_GITLAB_SECRET::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SOCIAL_AUTH_GOOGLE_OAUTH2_KEY",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:SOCIAL_AUTH_GOOGLE_OAUTH2_KEY::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "STATSD_HOST",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:STATSD_HOST::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "STRIPE_API_KEY",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:STRIPE_API_KEY::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "STRIPE_DEFAULT_PRICE_ID",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:STRIPE_DEFAULT_PRICE_ID::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "STRIPE_GROWTH_PRICE_ID",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:STRIPE_GROWTH_PRICE_ID::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "STRIPE_PUBLISHABLE_KEY",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:STRIPE_PUBLISHABLE_KEY::"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "STRIPE_WEBHOOK_SECRET",
|
|
|
|
"valueFrom": "arn:aws:secretsmanager:us-east-1:795637471508:secret:Posthog_Production_Heroku-FQ2itU:STRIPE_WEBHOOK_SECRET::"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"entryPoint": ["sh", "-c"],
|
2021-06-14 11:01:57 +02:00
|
|
|
"command": ["./bin/docker-server"],
|
2021-05-04 16:22:20 +02:00
|
|
|
"linuxParameters": {
|
|
|
|
"initProcessEnabled": true
|
|
|
|
}
|
2020-11-20 06:11:00 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"requiresCompatibilities": ["FARGATE"],
|
2020-12-04 00:51:37 +01:00
|
|
|
"cpu": "1024",
|
|
|
|
"memory": "2048"
|
2020-11-20 06:11:00 +01:00
|
|
|
}
|