GithubHelp home page GithubHelp logo

elquimista / namesilo-letsencrypt Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 8 KB

Automate Let's Encrypt SSL/TLS Certificate Deployment to NameSilo

Dockerfile 4.39% Python 92.45% Shell 3.16%
automation certbot letsencrypt namesilo

namesilo-letsencrypt's Introduction

Automate Let's Encrypt SSL/TLS Certificate Deployment to NameSilo

docker-compose.yml

version: '3'
services:
  app:
    container_name: namesilo_letsencrypt_app
    image: elquimista/namesilo-letsencrypt:latest
    stdin_open: true
    tty: true
    restart: unless-stopped
    volumes:
      - ./config.py:/app/config.py
      - ./letsencrypt:/etc/letsencrypt

Start

docker-compose up -d

Generate certificates for the first time

docker-compose exec app sh
./namesilo-certbot.sh --email [email protected] -d "example.com"

This command will generate certificate key files under letsencrypt folder (specified in the docker compose volume section). The script will take 60 minutes to finish execution (due to Namesilo's DNS propagation taking approximately 60 minutes at the time of writing this. Feel free to adjust the waiting minutes appropriately in config.py).

Using certificates

Now you have certificate files generated inside letsencrypt folder, you can use them by mounting them to another Docker container that runs Nginx or symlink them if you run Nginx directly on the host OS. It's up to you.

Renewal of certificates

Certificates are renewed automatically with certbot renew command and cronjob. It's baked into this Docker image so you don't have to do anything.


Credit to ethauvin/namesilo-letsencrypt for the under the hood heavylifting.

namesilo-letsencrypt's People

Contributors

elquimista avatar

Watchers

 avatar

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.