aboutsummaryrefslogtreecommitdiff
path: root/content/docs/adyxax.org/www/install.md
blob: 3b8a22517d5a922bf93551f171ce05d76e393a8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: "Installation"
description: Installation notes of www on k3s
---

## Introduction

This is a static website built using hugo.

## Kubernetes manifest

[The whole manifest is here](https://git.adyxax.org/adyxax/www/tree/deploy/www.yaml).

## DNS CNAME

Terraform is only used for the dns record on this app for legacy reasons

```hcl
resource "cloudflare_record" "pass-cname" {
  zone_id = lookup(data.cloudflare_zones.adyxax-org.zones[0], "id")
  name    = "www"
  value   = "myth.adyxax.org"
  type    = "CNAME"
  proxied = false
}
```

## Certificate

For now I do not manage my certificates with terraform but manually. Once every two months I run :
```sh
acme.sh --config-home "$HOME/.acme.sh" --server letsencrypt --dns dns_cf --issue -d adyxax.org -d *.adyxax.org --force
kubectl -n www create secret tls wildcard-adyxax-org --cert=$HOME/.acme.sh/adyxax.org/fullchain.cer \
  --key=$HOME/.acme.sh/adyxax.org/adyxax.org.key -o yaml --save-config --dry-run=client | kubectl apply -f -
```