Giter Club home page Giter Club logo

letsencrypt-dnspod's Introduction

letsencrypt-dnspod

Let’s Encrypt使用dnspod进行验证

开始工作

 cp config.example.sh config.sh
 cp domains.example.txt domains.txt

编辑domains.txt,填入token、domain以及record

运行letsencrypt-dnspod.sh即可

config.sh不用修改亦可正常使用,如有需求请自行对应修改。

建议将此脚本放入计划任务

关于DNSPOD

token的设置在:DNSPOD -> 用户中心 -> 安全设置 -> API Token

快捷链接:https://www.dnspod.cn/console/user/security

按时更新

每月一次

echo '*/1 1 1 * * root /bin/bash /opt/letsencrypt/letsencrypt-dnspod.sh >>/var/log/letsencrypt.log 2>&1' > /etc/cron.d/letsencrypt

使用

Nginx

server {
	server_name www.example.com;

	rewrite ^ https://$server_name$request_uri? permanent;
}

server {
	listen 443;
	server_name www.example.com;

	ssl on;
	ssl_certificate /opt/letsencrypt/certs/example.com/fullchain.pem;
	ssl_certificate_key /opt/letsencrypt/certs/example.com/privkey.pem;
	ssl_session_timeout 5m;
	ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
	ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA;
	ssl_session_cache shared:SSL:50m;
#	ssl_dhparam /tmp/server.dhparam;
	ssl_prefer_server_ciphers on;

#	location / {
#		proxy_pass  http://127.0.0.1:3000;
#		proxy_redirect     off;
#		proxy_set_header   Host             $host;
#		proxy_set_header   X-Real-IP        $remote_addr;
#		proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
#	}
}

letsencrypt-dnspod's People

Contributors

yjbeetle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

letsencrypt-dnspod's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.