Skip to content

Commit 21b0e45

Browse files
committed
fe
1 parent 373c276 commit 21b0e45

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

infrastructure/applications/applications.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module "pycon_frontend" {
3838
source = "./pycon_frontend"
3939
cluster_id = module.cluster.cluster_id
4040
logs_group_name = module.cluster.logs_group_name
41+
server_ip = module.cluster.server_ip
4142

4243
providers = {
4344
aws = aws

infrastructure/applications/cluster/cloudfront.tf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ resource "aws_cloudfront_distribution" "application" {
2323
is_ipv6_enabled = true
2424
comment = "${terraform.workspace} server"
2525
wait_for_deployment = false
26-
aliases = [
27-
local.pycon_admin_domain,
28-
local.pretix_web_domain,
29-
local.pycon_frontend_domain
26+
aliases = local.is_prod ? ["*.pycon.it", "pycon.it"] : [
27+
"*.pycon.it",
3028
]
3129

3230
origin {

infrastructure/applications/pycon_frontend/task.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ resource "aws_ecs_task_definition" "pycon_frontend" {
2727
name = "CONFERENCE_CODE"
2828
value = module.secrets.value.conference_code
2929
},
30+
{
31+
name = "API_URL_SERVER",
32+
# value = "http://${var.server_ip}"
33+
value = local.is_prod ? "https://admin.pycon.it" : "https://pastaporto-admin.pycon.it"
34+
}
3035
]
3136

3237
portMappings = [
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
variable "cluster_id" {}
22
variable "logs_group_name" {}
3+
variable "server_ip" {}

0 commit comments

Comments
 (0)