infrastructure/terraform/grimes_vps.tf
Jake Howard d1ba7d8e80
Expose proxy to web
This means it doesn't need to go via VPN
2020-05-05 22:03:32 +01:00

38 lines
1,013 B
HCL

resource "vultr_server" "grimes" {
plan_id = 201
region_id = 8
os_id = 159
hostname = "grimes"
firewall_group_id = vultr_firewall_group.grimes.id
}
resource "vultr_firewall_group" "grimes" {
description = "grimes"
}
resource "vultr_firewall_rule" "grimes_ping" {
firewall_group_id = vultr_firewall_group.grimes.id
protocol = "icmp"
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "grimes_web" {
firewall_group_id = vultr_firewall_group.grimes.id
protocol = "tcp"
from_port = 80
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "grimes_web_secure" {
firewall_group_id = vultr_firewall_group.grimes.id
protocol = "tcp"
from_port = 443
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "grimes_proxy" {
firewall_group_id = vultr_firewall_group.grimes.id
protocol = "tcp"
from_port = 1080
network = "0.0.0.0/0"
}