Skip to content

Commit

Permalink
adding project and venue scoping to location (per shared services pro…
Browse files Browse the repository at this point in the history
…xy requirements)
  • Loading branch information
jpl-btlunsfo committed Jul 29, 2024
1 parent 5c7c60e commit 321ea98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions terraform-unity/modules/terraform-unity-sps-airflow/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -856,15 +856,15 @@ resource "aws_ssm_parameter" "unity_proxy_airflow_ui" {
type = "String"
value = <<-EOT
<Location "/sps/">
<Location "/${var.project}/${var.venue}/sps/">
ProxyPassReverse "/"
</Location>
<LocationMatch "^/sps/(.*)$">
<LocationMatch "^/${var.project}/${var.venue}/sps/(.*)$">
ProxyPassMatch "http://${data.kubernetes_ingress_v1.airflow_ingress.status[0].load_balancer[0].ingress[0].hostname}:5000/$1"
ProxyPreserveHost On
FallbackResource /management/index.html
AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE text/html
Substitute "s|\"/([^\"]*)|\"/sps/$1|q"
Substitute "s|\"/([^\"]*)|\"/${var.project}/${var.venue}/sps/$1|q"
</LocationMatch>
EOT
Expand All @@ -881,15 +881,15 @@ resource "aws_ssm_parameter" "unity_proxy_ogc_api" {
type = "String"
value = <<-EOT
<Location "/sps-ogc/">
<Location "/${var.project}/${var.venue}/sps-ogc/">
ProxyPassReverse "/"
</Location>
<LocationMatch "^/sps-ogc/(.*)$">
<LocationMatch "^/${var.project}/${var.venue}/sps-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|\"/([^\"]*)|\"/sps-ogc/$1|q"
Substitute "s|\"/([^\"]*)|\"/${var.project}/${var.venue}/sps-ogc/$1|q"
</LocationMatch>
EOT
Expand Down

0 comments on commit 321ea98

Please sign in to comment.