#!/bin/bash

export DOMAIN_NAME=xx.tc.hk.go.107421.xyz
export DOMAIN_NAME=book.107421.xyz

export DOMAIN_NAME=octopus.107421.xyz

export DOMAIN_NAME=zc.p4.cc.xx.107421.xyz 

export DOMAIN_NAME=bingo.107421.xyz 


# seoul-arm-01
export DOMAIN_NAME=dify.107421.xyz
# seoul-arm-01
export DOMAIN_NAME=pan.107421.xyz

# Oracle-KOR-Seoul
export DOMAIN_NAME=xx.s4.cc.hh.107421.xyz

# Oracle-JPN-Tokyo-R-OSel
export DOMAIN_NAME=xx.t2.ll.c0.107421.xyz

# Oracle-JPN-Osaka-R-OSel
export DOMAIN_NAME=xx.o1.vl.s4.107421.xyz

# Oracle-USA-Phoneix-R-OSel
export DOMAIN_NAME=xx.p2.vl.s4.107421.xyz

# BitsFlow-USA-LosAngles-CN2GIA
export DOMAIN_NAME=xx.l4.ca.bg.107421.xyz

# seoul-arm-01
export DOMAIN_NAME=office.107421.xyz

export CF_Token="y-OqT1Gan37vBUC1YaedmkKbsH6Kf84RH6Ve2b5x"
export CF_Account_ID="dfaadeb83406ef5ad35da02617af9191"
export CF_Zone_ID="511894a4f1357feb905e974e16241ebb"

acme.sh   --issue   --dns dns_cf -d ${DOMAIN_NAME} --keylength ec-256

acme.sh --install-cert -d ${DOMAIN_NAME} --ecc \
--key-file       /etc/nginx/conf.d/ssl_key/${DOMAIN_NAME}.key.pem  \
--fullchain-file /etc/nginx/conf.d/ssl_key/${DOMAIN_NAME}.cert.pem \
--reloadcmd     "systemctl restart nginx --force"

acme.sh --renew -d ${DOMAIN_NAME} --ecc