Skip to content

Commit 8de36c8

Browse files
committed
various configuration changes
1 parent 1dd3fb5 commit 8de36c8

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/tofu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
{ PLAN=$(tofu plan -var-file="env-staging.tfvars" -no-color | tee /dev/fd/5 || true); } 5>&1
5555
echo "<details><summary>OpenTofu Plan (Staging)</summary><code>$PLAN</code></details>" >> $GITHUB_STEP_SUMMARY
5656
- name: Tofu Init (Prod)
57-
run: tofu init -var-file="env-prod.tfvars" -input=false
57+
run: tofu init -var-file="env-prod.tfvars" -input=false -reconfigure
5858
- name: Tofu Plan (Prod)
5959
run: |
6060
{ PLAN=$(tofu plan -var-file="env-prod.tfvars" -no-color | tee /dev/fd/5 || true); } 5>&1

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ flowchart TD
4848
4949
Orama["Orama Search Index"]
5050
51+
Plausible["Plausible Analytics"]
52+
5153
WebDeploy -.-> Orama
5254
WebDeploy -.-> WebMachine
5355
WebDeploy --> HoofMachine
@@ -57,6 +59,7 @@ flowchart TD
5759
WebUser --> CDN
5860
WebUser --> Tigris
5961
WebUser --> ImageOptimization --> WebMachine
62+
WebUser --> Plausible
6063
6164
CDN --> WebMachine
6265

modules/playful-web/main.tf

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,20 @@ resource "fastly_service_vcl" "cdn" {
1717
activate = true
1818
comment = "Managed by Tofu"
1919
http3 = true
20-
name = "Playful Programming's website"
20+
name = "PFP Website for ${var.domain}"
2121
stage = false
2222

2323
domain {
2424
name = var.domain
2525
}
2626

2727
backend {
28-
address = var.host
29-
name = "Host 1"
30-
port = 443
31-
prefer_ipv6 = true
32-
use_ssl = true
28+
address = var.host
29+
name = "Host 1"
30+
port = 443
31+
prefer_ipv6 = true
32+
ssl_cert_hostname = var.host
33+
use_ssl = true
3334
}
3435

3536
gzip {
@@ -111,6 +112,7 @@ resource "fastly_service_vcl" "cdn" {
111112
}
112113

113114
resource "fastly_tls_subscription" "main" {
115+
depends_on = [fastly_service_vcl.cdn]
114116
domains = [var.domain, "*.${var.domain}"]
115117
certificate_authority = "certainly"
116118
}
@@ -156,5 +158,4 @@ resource "porkbun_dns_record" "apex" {
156158
type = "A"
157159
content = each.value
158160
ttl = 600
159-
prio = 10
160161
}

0 commit comments

Comments
 (0)