Let's encrypt 获取证书Nginx

sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install certbot 手动 只获取证书 certbot certonly --standalone -d kdaye.com -d www.kdaye.com 输入邮箱 输入A为同意 输入Y为同意愿意接受邮件 IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/kdaye.com/fullchain.pem. Your cert will our…

安装Ghost with Nginx in Docker

创建个docker-compose文件 vim docker-compose.yml 内容 version: "2" services: ghost: image: ghost:alpine container_name: ghost volumes: - ./blog:/var/lib/ghost networks: - nginx-proxy environment: - VIRTUAL_HOST=kdaye.com,www.kdaye.com - LETSENCRYPT_HOST=kdaye.com,www.kdaye.com - LETSENCRYPT_EMAIL=K@kdaye.com networks:…

安装Nginx+nginx-proxy+letsencrypt in Docker

目的 在Docker运行Nginx,反代其他Docker container,例如本博客,Ghost 本章实现功能 自动创建的Ghost博客的Nginx配置 自动创建的Ghost博客的Let's encrypt的SSL证书 并运行 实例 mkdir nginx/volumes/templates -p git clone https://github.com/jwilder/nginx-proxy.git cp nginx-proxy/nginx.tmpl nginx/volumes/templates rm -rf nginx-proxy cd nginx 创建个docker-compose文件 vim docker-compose.yml 内容 version: "2" services: nginx: restart: unless-stopped…