Add automatic SSL certificate generation
All checks were successful
Build and Push / build-all (push) Successful in 7m17s

This commit is contained in:
doomtube 2026-01-06 04:53:46 -05:00
parent 01bd631af8
commit 3155eacdac
7 changed files with 8 additions and 109 deletions

View file

@ -22,19 +22,6 @@ resource "random_password" "forgejo_jwt_secret" {
special = false
}
# =============================================================================
# Forgejo Volume (Block Storage)
# =============================================================================
resource "digitalocean_volume" "forgejo" {
name = "${var.project_name}-forgejo-${var.environment}"
region = var.region
size = var.volume_size
initial_filesystem_type = "ext4"
description = "Forgejo data volume for ${var.project_name}"
tags = var.tags
}
# =============================================================================
# Forgejo Droplet
# =============================================================================
@ -57,7 +44,6 @@ resource "digitalocean_droplet" "forgejo" {
ssh_port = var.ssh_port
git_ssh_port = var.git_ssh_port
vpc_ip_range = var.vpc_ip_range
volume_name = "${var.project_name}-forgejo-${var.environment}"
domain = var.domain
postgres_password = random_password.postgres.result
forgejo_secret_key = random_password.forgejo_secret_key.result
@ -73,15 +59,6 @@ resource "digitalocean_droplet" "forgejo" {
}
}
# =============================================================================
# Volume Attachment
# =============================================================================
resource "digitalocean_volume_attachment" "forgejo" {
droplet_id = digitalocean_droplet.forgejo.id
volume_id = digitalocean_volume.forgejo.id
}
# =============================================================================
# DNS Record (optional - requires domain to be managed by DigitalOcean)
# =============================================================================