Compare commits

...

2 Commits

Author SHA1 Message Date
Inex Code 07875e5331 Add a DNS records support article 2022-06-21 16:50:22 +03:00
Inex Code 33a7782340 Add chroot info 2022-06-21 16:45:39 +03:00
2 changed files with 33 additions and 0 deletions

19
src/nixos/chroot.md Normal file
View File

@ -0,0 +1,19 @@
# Entering nixos chroot from rescue
```
mount /dev/sda1 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt /nix/var/nix/profiles/system/activate
cp /etc/resolv.conf /mnt/etc/
chroot /mnt /run/current-system/sw/bin/bash
```
Use `--option sandbox false` when `nixos-rebuild`

14
src/support/dns.md Normal file
View File

@ -0,0 +1,14 @@
# Certificate expired
## How to diagnose
Given the domain is `domain.tld` get the logs of ACME.
```bash
journalctl -r -u acme-domain.tld
# Jitsi has a different cert
journalctl -r -u acme-meet.domain.tld
```
## Deleting certs
If current certs broken, you may delete certs by nuking `/val/lib/acme`. After reboot, ACME will try to get certs again.
## Cloudflare token
Required to obtain certs. Make sure it's valid. Located in `/etc/nixos/userdata/userdata.json`