Giter Club home page Giter Club logo

dehydrated-pdns's Introduction

Dehydrated with PDNS hook in a Docker Container

Dehydrated is a very simple shell script that implements the letsencrypt/acme client protocol and impressively facilitates an easy DNS based challenge to your PDNS servers, the benefits of the DNS challenge is that you will not expose any services to the internet, and you can even run this as part of a CI/CD pipeline without having any servers.

In particular, this container is leveraged in a Concourse pipeline to get the necessary publicly trusted certificates that a PCF installation would need without exposing anything.

This is created bu using a few bits from other developers.

  1. pdns_api.sh - https://github.com/silkeh/pdns_api.sh
  2. Example dehydrated dockerfile: https://github.com/voor/dehydrated-route53-docker

Usage

Volumes required:

/certs /accounts /chains

Also you will need to mount some files, i had mine stored in /opt on the docker host.

/opt/dehydrated-pdns/domains.txt mounted as /home/dehydrated/domains.txt /opt/dehydrated-pdns/zones.txt mounted as /home/dehydrated/zones.txt

For the content of domains.txt and zones.txt:

zones.txt should contain just the zone so "example.com" and domains.txt should contain the subdomain "domain1.example.com"

Example Usage:

docker run -v $PWD/chains:/chains -v $PWD/certs:/certs -v $PWD/accounts:/accounts -v $PWD/domains.txt:/home/dehydrated/domains.txt -v $PWD/zones.txt:/home/dehydrated/zones.txt -e PDNS_HOST=http://ns1.xxx.com:8081 -e PDNS_PORT=8081 -e PDNS_KEY="changeme" -e PDNS_VERSION=1 dehydrated-pdns

dehydrated-pdns's People

Contributors

jayvolr avatar

Watchers

Jon Hayward 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.