Skip to content

Commit

Permalink
docs: remove cert instructions (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaser authored Oct 27, 2024
1 parent 1339472 commit f68354f
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions src/usr/local/emhttp/plugins/tailscale/Tailscale-5-Help.page
Original file line number Diff line number Diff line change
Expand Up @@ -32,41 +32,6 @@ function help_block(string $section, string $header="h3") : string {
<?= help_block('subnets') ?>
<?= help_block('dns') ?>

## <?= $tr->tr("help.certificates") ?>

<?= $tr->tr("help.certificates_instructions") ?>
```
#!/bin/bash
mkdir -p /boot/config/plugins/tailscale/certs
cd /boot/config/plugins/tailscale/certs

source /boot/config/ident.cfg
FQDN=$(hostname | tr '[:upper:]' '[:lower:]').${LOCAL_TLD%%[[:cntrl:]]}

# Have Tailscale generate a new certificate if needed
tailscale cert $FQDN

# Build the PEM bundle
cat /boot/config/plugins/tailscale/certs/$FQDN.crt > /boot/config/plugins/tailscale/certs/$FQDN.pem
cat /boot/config/plugins/tailscale/certs/$FQDN.key >> /boot/config/plugins/tailscale/certs/$FQDN.pem

# Update the WebGUI certificate
echo "Copying certificate to WebGUI config"
cp -v /boot/config/plugins/tailscale/certs/$FQDN.pem /boot/config/ssl/certs/$(hostname)_unraid_bundle.pem
echo "Restarting WebGUI"
/etc/rc.d/rc.nginx reload
```

<?= $tr->tr("help.certificates_docker") ?>
```
# Copy the files to the Minio container
echo "Copying certificate to Minio"
cp -v /boot/config/plugins/tailscale/certs/$FQDN.crt /mnt/user/appdata/minio/certs/public.crt
cp -v /boot/config/plugins/tailscale/certs/$FQDN.key /mnt/user/appdata/minio/certs/private.key
echo "Restarting Minio"
docker restart Minio
```

## <?= $tr->tr("help.support") ?>

<?= $tr->tr("help.support_forums") ?>
Expand Down

0 comments on commit f68354f

Please sign in to comment.