diff --git a/.travis.yml b/.travis.yml index c11e9f3..4f26e1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,13 +4,19 @@ services: script: - docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder sh -c 'sudo chown -R rust . && cargo test && cargo build --release' +cache: cargo + +notifications: + email: + on_success: never + before_deploy: - ./ci/before_deploy.sh deploy: provider: releases api_key: - secure: "GHjOIiBMx3/0hqRsg4fAaNKeTbcgmS55AvzHGQUB8ZYIxbhRysIGk6ovdBS5RHE9t6uPlp3zdZ8Iw9s63zTH+z/l+eLA+9quT+Ls9g6/MKpTfmLgu+Fg5ilJllEzDG1MBEbneoU38hpBECJuoUX78JN8ss7Xu61vgXf/5R2lBtoxwqMLwUse0vbHnR8NQNsBKrOC1XETWRXTBnC1X2dJ4JbI5FprihHtxmkh4mC+gJRm/1RIO+oegRnR5H8d/w3A9cou750neR9rESh6NBZBgjLR+odwE+nZRJXqoYfhExKAa9MAK1HAj0f9IXGw4tRApUF4fU0dKHa5E4I2MjNJoLw88lG6Rt/+897LJrGN+Csf65vmvLANlKlhdme/+nyG0vOcTuuv5tTl/2DaytShw2Jjp7eT4iHVyS0/nuk2Z80nZyhlBoDyg2VwBfMoMYslphqbV3PVBnsnTp7LOBb7m6WpHZIB/QsXVUMhIoQGE7kgZxSA+TfiX5BGO7fYihFqdoqB4ddEm63ciJVE3ZQv2wYgHIuStoY7wu8nPzK4X0h5r84BaGGnuiL1nyKe3NgTHdU59LHLbM66//M0rJzxqjV7SjnQag/F8G/EbD0aq6CF4fXOUvIf+vXBVOPR45QTayjdbljm5GLPoGqHNyaaULsh5O2W4onn40PcaXKOkSs=" + secure: "fdLXKxM5eLdQq/TrFjwp2NpJP6e7zp4yjtxaXvHSvETkEGz5ZiLFbIhP0Qql6f4qjDAfipoQZUD47ibYlcKDYoX9iXDOPWGqpTvrmGer43voZRhPJXuqfJIevRBnFm15xZKJtnIa4COF+LhOSCLsueajtZQOC1MV6GV2E1PBnkprawtusvmnjQDo2KiEBwQ4W5VfKtemXoihc+JF+efwpCv9tvsjkhtiyxxxFXVb1wGa+kY3vIBzXm7lao8oYhq9qS8nD/dsxZ3HywKM2y3YJDxwDg+S2e+NutleppnqDbjr9NjijF382PJlLhqTBu3C+Zi+yLZeTGPf4fR14Y8ZoycTYkPg+2fjL5HbIWd/NtHQVF25Pk3vkgMX6D+jLJ5pLGatl7eYw1cSolNy/RGmIzOsgFTy2a1N4kVJB+azcLLQHaG6UPL/DhN6xozlrtOR7PyIBSvW6DZrLmaCgIPquuZ4iHtNJZkEFYaL+/NIsgMHiSGNNtaY5jzDifFL/FKzG6/nu6MCagxIME2sLcoCWAmVCiA/JKKxc0+1+S3Z+duHcJ+WtRb7dLDZAr23qo1CmEWK3W60XMGVHGO+RuYu7+0nVUqe3GY3TRDWmxkz+t/VHUtYKQHc2jixSWeK2o5j8yeU7LnpS/H3rCnm1CJmiWi7wyGUx78GPaczHtgcOdM=" file_glob: true file: - deploy/* diff --git a/README.md b/README.md index 48ac4d9..862dfbf 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # BIND9 API +[![Travis Build Status](https://travis-ci.org/vbrandl/bind9-api.svg?branch=master)](https://travis-ci.org/vbrandl/bind9-api) +[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/vbrandl/bind9-api/blob/master/LICENSE-MIT) +[![License](https://img.shields.io/badge/license-Apache-green.svg)](https://github.com/vbrandl/bind9-api/blob/master/LICENSE-APACHE) + This is an attempt to implement an API to create, update or delete DNS records on a BIND9 DNS server. @@ -108,6 +112,14 @@ In `letsencrypt/`, two example scripts can be found to use the client as a certbot hook for DNS challenges. It assumes that the client is located somewhere in `$PATH` and that the configurations file exists. +To obtain a new certificate, certbot can be invoked as followed: + +``` +certbot certonly -n --agree-tos --server https://acme-v02.api.letsencrypt.org/directory --preferred-challenges=dns-01 +--manual --manual-auth-hook /usr/lib/letsencrypt-bind9/certbot-bind9-auth --manual-cleanup-hook +/usr/lib/letsencrypt-bind9/certbot-bind9-cleanup --manual-public-ip-logging-ok -d example.com -d '*.example.com' +``` + ## License This project is licensed under either of @@ -117,4 +129,4 @@ This project is licensed under either of * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) -at your option. \ No newline at end of file +at your option. diff --git a/client/Cargo.toml b/client/Cargo.toml index 075d487..6284927 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bind9-api-client" -version = "0.1.0" +version = "0.1.1" authors = ["Valentin Brandl "] description = "Client for the BIND9 API" license = "MIT/Apache-2.0" @@ -18,4 +18,4 @@ reqwest = "0.8.6" serde = "1.0.69" serde_derive = "1.0.69" serde_json = "1.0.22" -toml = "0.4.6" \ No newline at end of file +toml = "0.4.6" diff --git a/server/Cargo.toml b/server/Cargo.toml index 6ed0047..4617734 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bind9-api" -version = "0.1.0" +version = "0.1.1" authors = ["Valentin Brandl "] description = "Web API to create, update and remove DNS entries in bind9" license = "MIT/Apache-2.0" @@ -15,4 +15,4 @@ futures = "0.1.21" log = "0.4.3" pretty_env_logger = "0.2.3" serde = "1.0.69" -serde_json = "1.0.22" \ No newline at end of file +serde_json = "1.0.22"