Skip to content

Commit

Permalink
updating ssm entery per testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jpl-btlunsfo committed May 29, 2024
1 parent 287af36 commit 8cafef3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions terraform-unity/ssm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ resource "aws_ssm_parameter" "managementproxy_config" {
name = "/unity/${var.project}/${var.venue}/cs/management/proxy/configurations/010-management"
type = "String"
value = <<-EOT
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule /management/(.*) ws://${var.mgmt_dns}/$1 [P,L]
<Location "/management/">
RewriteEngine on
ProxyPass http://${var.mgmt_dns}/
ProxyPassReverse http://${var.mgmt_dns}/
ProxyPreserveHost On
RewriteCond %\{HTTP:Upgrade} websocket [NC]
RewriteCond %\{HTTP:Connection} upgrade [NC]
RewriteRule (.*) ws://${var.mgmt_dns}/$1 [P,L]
FallbackResource /management/index.html
</Location>
EOT
}

0 comments on commit 8cafef3

Please sign in to comment.