Skip to content

CloudFlare DNS Challenge #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions doc/IMPORTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ services:
MYSQL_PASSWORD: "password123"
volumes:
- ./data/mysql:/var/lib/mysql
letsencrypt:
image: adferrand/letsencrypt-dns
container_name: "letsencrypt-dns"
env_file: .env
volumes:
- "$ROOT/domains.conf:/etc/letsencrypt/domains.conf"
- "$ROOT/certs/:/etc/letsencrypt"
environment:
- VERSION=latest
- "LETSENCRYPT_USER_MAIL=$EMAIL"
- "LEXICON_PROVIDER=$PROVIDER"
- "LEXICON_PROVIDER_OPTIONS=$PROVIDER_OPTIONS"
- "CERTS_DIRS_MODE=$DIRS_MODE"
- "CERTS_FILES_MODE=$FILES_MODE"
restart: always
```

After you start the stack, the import will begin just after database initialize.
Expand Down
23 changes: 23 additions & 0 deletions doc/example/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

###################################
# Letsencrypt-DNS configuration file
# Update info on lines 11 and 17
###################################

# Set this to the path where Letsencrypt-DNS data and configuration is stored
ROOT=./letsencrypt-dns

# Letsencrypt email address
[email protected]

# Lexicon provider
PROVIDER=cloudflare

# Provider options
PROVIDER_OPTIONS=--auth-username=my_cloudflare_email --auth-token=my_cloudflare_global_api_key

# Certificate directory mode
DIRS_MODE=0750

# Certificate files mode
FILES_MODE=0640
16 changes: 16 additions & 0 deletions doc/example/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,19 @@ services:
MYSQL_PASSWORD: "npm"
volumes:
- ./data/mysql:/var/lib/mysql
#LETSENCRYPT CLOUDFLARE DNS CHALLANGE
letsencrypt:
image: adferrand/letsencrypt-dns
container_name: "letsencrypt-dns"
env_file: .env
volumes:
- "$ROOT/domains.conf:/etc/letsencrypt/domains.conf"
- "$ROOT/certs/:/etc/letsencrypt"
environment:
- VERSION=latest
- "LETSENCRYPT_USER_MAIL=$EMAIL"
- "LEXICON_PROVIDER=$PROVIDER"
- "LEXICON_PROVIDER_OPTIONS=$PROVIDER_OPTIONS"
- "CERTS_DIRS_MODE=$DIRS_MODE"
- "CERTS_FILES_MODE=$FILES_MODE"
restart: always
2 changes: 2 additions & 0 deletions doc/example/letsencrypt-dns/domains.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Replace with your ___domain ###
*.example.com example.com