2022-10-22 12:01:49 +10:00
|
|
|
#!/bin/bash
|
|
|
|
# Script Name: ssl-install
|
|
|
|
# Author: Matt McKinnon
|
|
|
|
# Date: 28th May 2018
|
|
|
|
# Description:
|
|
|
|
#
|
|
|
|
# Script used to copy Let's Encrypt Generated Certificates from generating server to remote host .
|
|
|
|
|
2024-01-03 00:06:31 +10:00
|
|
|
GITLAB="gitlab.comprofix.com"
|
2022-10-22 12:01:49 +10:00
|
|
|
PROXMOX="pve1.comprofix.xyz"
|
|
|
|
TRUENAS="truenas.comprofix.xyz"
|
|
|
|
|
2024-01-03 00:06:31 +10:00
|
|
|
scp /mnt/nfs/docker/traefik/config/certificates/comprofix.xyz.cer root@$PROXMOX:/etc/pve/nodes/pve1/pveproxy-ssl.pem
|
|
|
|
scp /mnt/nfs/docker/traefik/config/certificates/comprofix.xyz.key root@$PROXMOX:/etc/pve/nodes/pve1/pveproxy-ssl.key
|
2022-10-22 12:01:49 +10:00
|
|
|
ssh -t root@$PROXMOX "systemctl restart pveproxy"
|
|
|
|
|
2024-01-03 00:06:31 +10:00
|
|
|
scp /mnt/nfs/docker/traefik/config/certificates/comprofix.xyz.cer root@$TRUENAS:/etc/certificates/truenas_default.crt
|
|
|
|
scp /mnt/nfs/docker/traefik/config/certificates/comprofix.xyz.key root@$TRUENAS:/etc/certificates/truenas_default.key
|
2022-10-22 12:01:49 +10:00
|
|
|
|
|
|
|
ssh -t root@$TRUENAS "systemctl restart nginx"
|
|
|
|
|
2024-01-03 00:06:31 +10:00
|
|
|
scp /mnt/nfs/docker/traefik/config/certificates/comprofix.com.cer root@$GITLAB:/etc/gitlab/ssl/gitlab.comprofix.com.crt
|
|
|
|
scp /mnt/nfs/docker/traefik/config/certificates/comprofix.com.key root@$GITLAB:/etc/gitlab/ssl/gitlab.comprofix.com.key
|
2022-10-22 12:01:49 +10:00
|
|
|
|
2024-01-03 00:06:31 +10:00
|
|
|
scp /mnt/nfs/docker/traefik/config/certificates/registry.gitlab.comprofix.com.cer root@$GITLAB:/etc/gitlab/ssl/registry.gitlab.comprofix.com.crt
|
|
|
|
scp /mnt/nfs/docker/traefik/config/certificates/registry.gitlab.comprofix.com.key root@$GITLAB:/etc/gitlab/ssl/registry.gitlab.comprofix.com.key
|
|
|
|
|
|
|
|
ssh -t root@$GITLAB "gitlab-ctl restart nginx"
|