chore: full stack stability and migration fixes, plus react UI progress
This commit is contained in:
47
deploy/terraform/firewall.tf
Normal file
47
deploy/terraform/firewall.tf
Normal file
@@ -0,0 +1,47 @@
|
||||
resource "hcloud_firewall" "madbase_firewall" {
|
||||
name = "madbase-firewall"
|
||||
|
||||
rule {
|
||||
direction = "in"
|
||||
protocol = "tcp"
|
||||
port = "22"
|
||||
source_ips = [
|
||||
"0.0.0.0/0",
|
||||
"::/0"
|
||||
]
|
||||
}
|
||||
|
||||
rule {
|
||||
direction = "in"
|
||||
protocol = "tcp"
|
||||
port = "80"
|
||||
source_ips = [
|
||||
"0.0.0.0/0",
|
||||
"::/0"
|
||||
]
|
||||
}
|
||||
|
||||
rule {
|
||||
direction = "in"
|
||||
protocol = "tcp"
|
||||
port = "443"
|
||||
source_ips = [
|
||||
"0.0.0.0/0",
|
||||
"::/0"
|
||||
]
|
||||
}
|
||||
|
||||
rule {
|
||||
direction = "in"
|
||||
protocol = "icmp"
|
||||
source_ips = [
|
||||
"0.0.0.0/0",
|
||||
"::/0"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
resource "hcloud_firewall_resource" "fw_server1" {
|
||||
firewall_id = hcloud_firewall.madbase_firewall.id
|
||||
server_id = hcloud_server.server1.id
|
||||
}
|
||||
Reference in New Issue
Block a user