SiloCityLabs / lochnas

Docker configuration for all-in-one nas setup
https://lochnas.com
GNU General Public License v3.0
50 stars 3 forks source link

Bring domain remove into golang #37

Closed ldrrp closed 2 years ago

ldrrp commented 2 years ago

Problem

Currently the old domain remove script lives in bash:

docker run --rm -i \
-v "/docker-nas/docker-data/letsencrypt:/etc/letsencrypt" \
-v "/docker-nas/docker-data/certbot:/var/www/certbot" \
certbot/certbot 'delete'

Solution

Allow the user to run command to remove a domain name from the certificate list. We want to eliminate calling scripts entirely.

We need to carry this into golang at the following location:

https://github.com/SiloCityLabs/docker-nas/blob/v3/server/models/domain.go#L61

Steps to Reproduce the Problem

  1. ./server.bin -domain delete