File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
infrastructure/applications Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 = [
Original file line number Diff line number Diff line change 11variable "cluster_id" {}
22variable "logs_group_name" {}
3+ variable "server_ip" {}
You can’t perform that action at this time.
0 commit comments