1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| cd /etc/gitlab/ssl
mkdir his_bak ls
mv gitlab.xplorist.tech.crt ./his_bak/ mv gitlab.xplorist.tech.crt-staging ./his_bak/ mv gitlab.xplorist.tech.key ./his_bak/ mv gitlab.xplorist.tech.key-staging ./his_bak/
curl https://get.acme.sh | sh
vi ~/.bashrc
export Ali_Key="AccessKeyId" export Ali_Secret="AccessKeySecret"
source ~/.bashrc
acme.sh --issue --dns dns_ali -d gitlab.xplorist.tech --server letsencrypt
crontab -l
acme.sh --issue --dns dns_ali -d gitlab.xplorist.tech \ --server letsencrypt \ --installcert \ --key-file /etc/gitlab/ssl/gitlab.xplorist.tech.key \ --fullchain-file /etc/gitlab/ssl/gitlab.xplorist.tech.crt \ --reloadcmd "gitlab-ctl restart nginx"
gitlab-ctl reconfigure
|