Deploy Infrastructure / plan (push) Failing after 19s
Deploy Infrastructure / apply (push) Has been skipped
Security Audit / Infrastructure Scan (IaC) (push) Successful in 17s
Ansible Setup / ansible (push) Successful in 2m13s
Security Audit / Docker Image Scan (docker.io/gotenberg/gotenberg:8) (push) Failing after 2m54s
Security Audit / Docker Image Scan (docker.io/library/postgres:15) (push) Failing after 31s
Security Audit / Docker Image Scan (docker.io/library/redis:7) (push) Failing after 17s
Security Audit / Docker Image Scan (ghcr.io/icereed/paperless-gpt:latest) (push) Failing after 17s
Security Audit / Docker Image Scan (ghcr.io/paperless-ngx/paperless-ngx:latest) (push) Failing after 2m47s
Security Audit / Docker Image Scan (shenxn/protonmail-bridge:latest) (push) Successful in 17s
Security Audit / Docker Image Scan (docker.io/apache/tika:latest) (push) Failing after 9m48s
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
# Example: Manage a Cloudflare Tunnel
|
|
# 1. Create the Tunnel Resource
|
|
# resource "cloudflare_tunnel" "homelab_tunnel" {
|
|
# account_id = var.cloudflare_account_id
|
|
# name = "homelab-tunnel"
|
|
# secret = base64sha256(random_password.tunnel_secret.result)
|
|
# }
|
|
#
|
|
# 2. Generate a random secret for the tunnel
|
|
# resource "random_password" "tunnel_secret" {
|
|
# length = 32
|
|
# special = false
|
|
# }
|
|
#
|
|
# 3. Configure the Tunnel (Ingress Rules)
|
|
# resource "cloudflare_tunnel_config" "homelab_config" {
|
|
# account_id = var.cloudflare_account_id
|
|
# tunnel_id = cloudflare_tunnel.homelab_tunnel.id
|
|
#
|
|
# config {
|
|
# ingress_rule {
|
|
# hostname = "gitea.renner.uno"
|
|
# service = "http://10.2.40.114:3000"
|
|
# origin_request {
|
|
# connect_timeout = "1m"
|
|
# }
|
|
# }
|
|
#
|
|
# # Catch-all rule (Required)
|
|
# ingress_rule {
|
|
# service = "http_status:404"
|
|
# }
|
|
# }
|
|
# }
|
|
#
|
|
# 4. Create DNS Records pointing to the Tunnel
|
|
# resource "cloudflare_record" "gitea" {
|
|
# zone_id = "your_zone_id_here"
|
|
# name = "gitea"
|
|
# value = "${cloudflare_tunnel.homelab_tunnel.id}.cfargotunnel.com"
|
|
# type = "CNAME"
|
|
# proxied = true
|
|
# }
|