Skip to content

Commit

Permalink
fixing URLs based on input
Browse files Browse the repository at this point in the history
  • Loading branch information
jpl-btlunsfo committed Jul 29, 2024
1 parent fe3edf3 commit 479cd16
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions terraform-unity/modules/terraform-unity-sps-airflow/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,8 @@ resource "aws_ssm_parameter" "unity_proxy_airflow_ui" {
<Location "/${var.project}/${var.venue}/sps/">
ProxyPassReverse "/"
</Location>
<Location "/unity/dev/sps/unity/dev/sps/home">
Redirect "/unity/dev/sps/home"
<Location "/${var.project}/${var.venue}/sps/${var.project}/${var.venue}/sps/home">
Redirect "/${var.project}/${var.venue}/sps/home"
</Location>
<LocationMatch "^/${var.project}/${var.venue}/sps/(.*)$">
ProxyPassMatch "http://${data.kubernetes_ingress_v1.airflow_ingress.status[0].load_balancer[0].ingress[0].hostname}:5000/$1"
Expand All @@ -884,15 +884,15 @@ resource "aws_ssm_parameter" "unity_proxy_ogc_api" {
type = "String"
value = <<-EOT
<Location "/${var.project}/${var.venue}/sps-ogc/">
<Location "/${var.project}/${var.venue}/ogc/">
ProxyPassReverse "/"
</Location>
<LocationMatch "^/${var.project}/${var.venue}/sps-ogc/(.*)$">
<LocationMatch "^/${var.project}/${var.venue}/ogc/(.*)$">
ProxyPassMatch "http://${data.kubernetes_ingress_v1.ogc_processes_api_ingress.status[0].load_balancer[0].ingress[0].hostname}:5001/$1"
ProxyPreserveHost On
FallbackResource /management/index.html
AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE text/html
Substitute "s|\"/([^\"]*)|\"/${var.project}/${var.venue}/sps-ogc/$1|q"
Substitute "s|\"/([^\"]*)|\"/${var.project}/${var.venue}/ogc/$1|q"
</LocationMatch>
EOT
Expand Down

0 comments on commit 479cd16

Please sign in to comment.