====== Web Services ======
===== Renew Certificates (certbot) =====
==== Directory Structure ====
cd /data/webservices/
root@pidev01:/data/webservices# ls -laR
.:
total 36
drwxr-xr-x 4 root root 4096 Oct 24 2024 .
drwxr-xr-x 5 root root 4096 Dec 6 2024 ..
-rw-r--r-- 1 root root 498 Aug 16 2024 50x.html
-rw-r--r-- 1 root root 1447 Aug 16 2024 certbot_error.txt
-rw-r--r-- 1 root root 861 Oct 4 2024 docker-compose.yaml
drwxr-xr-x 3 root root 4096 Jul 20 2024 dokuwiki
-rw-r--r-- 1 root root 616 Aug 16 2024 index.html
-rw-r--r-- 1 root root 1229 Aug 16 2024 nginxsites.txt
drwxr-xr-x 5 root root 4096 Jun 19 10:23 wordpress
./dokuwiki:
total 12
drwxr-xr-x 3 root root 4096 Jul 20 2024 .
drwxr-xr-x 4 root root 4096 Oct 24 2024 ..
drwxr-xr-x 2 root root 4096 Aug 22 2024 mynotes.steffenrohr.com
./dokuwiki/mynotes.steffenrohr.com:
total 12
drwxr-xr-x 2 root root 4096 Aug 22 2024 .
drwxr-xr-x 3 root root 4096 Jul 20 2024 ..
-rw-r--r-- 1 root root 1510 Aug 16 2024 compose.yaml
./wordpress:
total 32
drwxr-xr-x 5 root root 4096 Jun 19 10:23 .
drwxr-xr-x 4 root root 4096 Oct 24 2024 ..
-rw-r--r-- 1 root root 761 Apr 27 2024 docker-compose.yml
drwxr-xr-x 2 root root 4096 Nov 11 2024 hfr.steffenrohr.com
drwxr-xr-x 2 root root 4096 Nov 11 2024 photography.steffenrohr.com
drwxr-xr-x 2 root root 4096 Nov 11 2024 playground.steffenrohr.com
-rw-r--r-- 1 root root 968 Apr 27 2024 wp1.yaml
./wordpress/hfr.steffenrohr.com:
total 20
drwxr-xr-x 2 root root 4096 Nov 11 2024 .
drwxr-xr-x 5 root root 4096 Jun 19 10:23 ..
-rw-r--r-- 1 root root 1816 Nov 11 2024 compose.yaml
-rw-r--r-- 1 root root 196 Jun 13 2024 .env
./wordpress/photography.steffenrohr.com:
total 32
drwxr-xr-x 2 root root 4096 Nov 11 2024 .
drwxr-xr-x 5 root root 4096 Jun 19 10:23 ..
-rw-r--r-- 1 root root 1843 Nov 11 2024 compose.yaml
-rw-r--r-- 1 root root 3426 Apr 28 2024 docker-compose.yml
-rw-r--r-- 1 root root 212 Apr 27 2024 .env
-rw-r--r-- 1 root root 212 Apr 12 2024 .photography.steffenrohr.com.env
-rw-r--r-- 1 root root 210 Apr 27 2024 .playground.steffenrohr.com.env
./wordpress/playground.steffenrohr.com:
total 20
drwxr-xr-x 2 root root 4096 Nov 11 2024 .
drwxr-xr-x 5 root root 4096 Jun 19 10:23 ..
-rw-r--r-- 1 root root 1835 Nov 11 2024 compose.yaml
-rw-r--r-- 1 root root 210 Apr 27 2024 .env
root@pidev01:/data/webservices#
==== Renew a Certificate (example) ====
root@pidev01:~# cd /data/webservices
root@pidev01:/data/webservices# docker compose up hfr_steffenrohr_com_certbot
[+] Running 3/3
✔ Container hfr_steffenrohr_com_db Running 0.0s
✔ Container hfr_steffenrohr_com Running 0.0s
✔ Container hfr_steffenrohr_com_certbot Created 0.4s
Attaching to hfr_steffenrohr_com_certbot
hfr_steffenrohr_com_certbot | Saving debug log to /var/log/letsencrypt/letsencrypt.log
hfr_steffenrohr_com_certbot | Renewing an existing certificate for hfr.steffenrohr.com
hfr_steffenrohr_com_certbot |
hfr_steffenrohr_com_certbot | Successfully received certificate.
hfr_steffenrohr_com_certbot | Certificate is saved at: /etc/letsencrypt/live/hfr.steffenrohr.com/fullchain.pem
hfr_steffenrohr_com_certbot | Key is saved at: /etc/letsencrypt/live/hfr.steffenrohr.com/privkey.pem
hfr_steffenrohr_com_certbot | This certificate expires on 2026-01-19.
hfr_steffenrohr_com_certbot | These files will be updated when the certificate renews.
hfr_steffenrohr_com_certbot | NEXT STEPS:
hfr_steffenrohr_com_certbot | - The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
hfr_steffenrohr_com_certbot |
hfr_steffenrohr_com_certbot | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
hfr_steffenrohr_com_certbot | If you like Certbot, please consider supporting our work by:
hfr_steffenrohr_com_certbot | * Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
hfr_steffenrohr_com_certbot | * Donating to EFF: https://eff.org/donate-le
hfr_steffenrohr_com_certbot | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
hfr_steffenrohr_com_certbot exited with code 0
root@pidev01:/data/webservices#
root@pidev01:/data/webservices# docker compose stop revproxy
root@pidev01:/data/webservices# docker compose start revproxy
==== Renew all certificates ====
docker compose up photography_steffenrohr_com_certbot
docker compose up playground_steffenrohr_com_certbot
docker compose up hfr_steffenrohr_com_certbot
docker compose up mynotes_steffenrohr_com_certbot
docker compose stop revproxy
docker compose start revproxy