sudo curl https://raw.githubusercontent.com/namukcom/SynologyCloudflareDDNS/master/setddns.py | python3 -
sudo curl https://raw.githubusercontent.com/namukcom/SynologyCloudflareDDNS/master/cloudflare.php -o /usr/syno/bin/ddns/cloudflare.php && sudo chmod 755 /usr/syno/bin/ddns/cloudflare.php
sudo vi /etc.defaults/ddns_provider.conf
[Cloudflare]
modulepath=/usr/syno/bin/ddns/cloudflare.php
queryurl=https://www.cloudflare.com/
#관리자 권한획득
sudo -i
cd ~
#acmesh-official 설치
wget https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
tar xvf master.tar.gz
cd acme.sh-master/
#zeroSSL에 들어갈 이메일 작성
./acme.sh --install --nocron --home /usr/local/share/acme.sh --accountemail "이메일"
source ~/.profile
export CF_Key="글로벌Key"
export CF_Email="이메일" #클라우드 플레어 계정의 이메일
export CF_Token="위에서 생성한 API 토큰"
#CERT_DNS를 Cloudflare로 설정
cd /usr/local/share/acme.sh
export CERT_DNS="dns_cf"
./acme.sh --issue --home . -d '내 도메인' -d '*.내 도메인' --dns "$CERT_DNS" --server letsencrypt
cd /usr/local/share/acme.sh
# 인증서
export SYNO_Username='관리자 계정'
export SYNO_Password='암호'
export SYNO_Certificate="인증서설명"
export SYNO_Create=1
./acme.sh --deploy --home . -d '도메인' -d '*.도메인' --deploy-hook synology_dsm
# 인증서 갱신
/usr/local/share/acme.sh/acme.sh --cron --home /usr/local/share/acme.sh/
sudo curl https://raw.githubusercontent.com/namukcom/SynologyCloudflareDDNS/master/setddns.py | python3 -
sudo curl https://raw.githubusercontent.com/namukcom/SynologyCloudflareDDNS/master/cloudflare.php -o /usr/syno/bin/ddns/cloudflare.php && sudo chmod 755 /usr/syno/bin/ddns/cloudflare.php
sudo vi /etc.defaults/ddns_provider.conf
[Cloudflare]
modulepath=/usr/syno/bin/ddns/cloudflare.php
queryurl=https://www.cloudflare.com/
#관리자 권한획득
sudo -i
cd ~
#acmesh-official 설치
wget https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
tar xvf master.tar.gz
cd acme.sh-master/
#zeroSSL에 들어갈 이메일 작성
./acme.sh --install --nocron --home /usr/local/share/acme.sh --accountemail "이메일"
source ~/.profile
export CF_Key="글로벌Key"
export CF_Email="이메일" #클라우드 플레어 계정의 이메일
export CF_Token="위에서 생성한 API 토큰"
#CERT_DNS를 Cloudflare로 설정
cd /usr/local/share/acme.sh
export CERT_DNS="dns_cf"
./acme.sh --issue --home . -d '내 도메인' -d '*.내 도메인' --dns "$CERT_DNS" --server letsencrypt
cd /usr/local/share/acme.sh
# 인증서
export SYNO_Username='관리자 계정'
export SYNO_Password='암호'
export SYNO_Certificate="인증서설명"
export SYNO_Create=1
./acme.sh --deploy --home . -d '도메인' -d '*.도메인' --deploy-hook synology_dsm
# 인증서 갱신
/usr/local/share/acme.sh/acme.sh --cron --home /usr/local/share/acme.sh/
sudo curl https://raw.githubusercontent.com/namukcom/SynologyCloudflareDDNS/master/setddns.py | python3 -
sudo curl https://raw.githubusercontent.com/namukcom/SynologyCloudflareDDNS/master/cloudflare.php -o /usr/syno/bin/ddns/cloudflare.php && sudo chmod 755 /usr/syno/bin/ddns/cloudflare.php
sudo vi /etc.defaults/ddns_provider.conf
[Cloudflare]
modulepath=/usr/syno/bin/ddns/cloudflare.php
queryurl=https://www.cloudflare.com/