-
Notifications
You must be signed in to change notification settings - Fork 101
/
http.tf
31 lines (27 loc) · 1003 Bytes
/
http.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
resource "google_compute_global_forwarding_rule" "frontend_http_ipv4" {
name = "frontend-http-ipv4-1"
target = google_compute_target_http_proxy.frontend.id
port_range = "80"
ip_address = google_compute_global_address.frontend_ipv4.address
ip_protocol = "TCP"
}
resource "google_compute_global_forwarding_rule" "frontend_http_ipv6" {
name = "frontend-http-ipv6-1"
target = google_compute_target_http_proxy.frontend.id
port_range = "80"
ip_address = google_compute_global_address.frontend_ipv6.address
ip_protocol = "TCP"
}
resource "google_compute_target_http_proxy" "frontend" {
name = "frontend"
url_map = google_compute_url_map.frontend_http.id
}
resource "google_compute_url_map" "frontend_http" {
name = "frontend-http"
default_url_redirect {
https_redirect = true
redirect_response_code = "TEMPORARY_REDIRECT"
strip_query = false
}
}