chore: Refresh of repo
This commit is contained in:
@@ -1,26 +1,24 @@
|
||||
# dev: Gitea + Runner + Traefik (git.luke-else.co.uk, cicd.luke-else.co.uk)
|
||||
|
||||
# Port sources: services/dev/*docker-compose.yml (published ports) and services/todo.md
|
||||
# (the documented UFW allow-list). dev has no firewall in docs/architecture.md, but we
|
||||
# add one anyway for baseline safety - see conversation history.
|
||||
# Port sources: services/dev/*docker-compose.yml (published ports)
|
||||
resource "hcloud_firewall" "this" {
|
||||
name = "dev-firewall"
|
||||
|
||||
rule { # server ssh - wired to the vpn server's public IP only, see infra/main.tf
|
||||
rule { # server ssh - wired to the vpn server's public IP only
|
||||
direction = "in"
|
||||
protocol = "tcp"
|
||||
port = "22"
|
||||
source_ips = var.allowed_ssh_source_ips
|
||||
}
|
||||
|
||||
rule { # gitea ssh (git.luke-else.co.uk, published as 222:22)
|
||||
rule { # gitea ssh
|
||||
direction = "in"
|
||||
protocol = "tcp"
|
||||
port = "222"
|
||||
source_ips = ["0.0.0.0/0", "::/0"]
|
||||
}
|
||||
|
||||
rule { # Traefik http/https (git.luke-else.co.uk, cicd.luke-else.co.uk)
|
||||
rule { # Traefik http/https
|
||||
direction = "in"
|
||||
protocol = "tcp"
|
||||
port = "80"
|
||||
@@ -56,7 +54,7 @@ resource "hcloud_server" "this" {
|
||||
location = var.location
|
||||
ssh_keys = var.ssh_key_ids
|
||||
firewall_ids = [hcloud_firewall.this.id]
|
||||
labels = { role = "dev" } # picked up by ansible/inventory/hcloud.yml
|
||||
labels = { role = "dev" }
|
||||
|
||||
network {
|
||||
network_id = var.network_id
|
||||
|
||||
Reference in New Issue
Block a user