Enable gzip compression for Discourse CDN

This commit is contained in:
Yousef Alam 2016-11-29 11:33:48 +00:00
Родитель 0ad339dc44
Коммит ce909b66fc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 10B7403F339660D9
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -7,7 +7,7 @@ module "discourse-production" {
service_security_group_id = "${module.mesos-cluster-production.mesos-cluster-slave-sg-id}"
elasticache_subnet_group = "${aws_elasticache_subnet_group.elasticache-production-subnet-group.name}"
fqdn = "discourse.mozilla-community.org"
ssl_certificate = "${lookup(var.ssl_certificates, "community-sites-elb-${var.aws_region}")}"
ssl_certificate = "${lookup(var.ssl_certificates, "community-sites-elb-${var.aws_region}")}"
}
module "discourse-staging" {
@ -19,5 +19,5 @@ module "discourse-staging" {
service_security_group_id = "${module.mesos-cluster-staging.mesos-cluster-slave-sg-id}"
elasticache_subnet_group = "${aws_elasticache_subnet_group.elasticache-staging-subnet-group.name}"
fqdn = "discourse.staging.paas.mozilla.community"
ssl_certificate = "${lookup(var.ssl_certificates, "community-sites-elb-${var.aws_region}")}"
ssl_certificate = "${lookup(var.ssl_certificates, "community-sites-elb-${var.aws_region}")}"
}

Просмотреть файл

@ -75,6 +75,7 @@ module "discourse-cdn" {
origin_domain_name = "${var.fqdn}"
origin_path = ""
origin_id = "discourse-pull-origin"
compression = true
alias = "cdn-${var.environment}.discourse.mozilla-community.org"
comment = "Discourse ${var.environment} CDN"
acm_certificate_arn = "${var.ssl_certificate}"