This repo contains tests for Lego integration with HyperOne DNS provider.
To setup e2e tests for own repository you have to replace passport.json.enc
file
with own encrypted passport to be used with TravisCI.
You can find more information about it in travis documentation.
gem install travis
travis login --com
travis encrypt-file passport.json
Travis should automatically detect repository you are using and update secrets on their side.
You use this project with custom github repository and branch. To do that provide custom build arguments when building the image.
Available arguments:
LEGO_OWNER
- github account with Lego repositoryLEGO_REPO_NAME
- name of repository containing LegoLEGO_BRANCH
- branch to be pulled when building image
You are able to override default domain to be checked by passing
BASE_URL
and ALIAS_URL
environment variables to container.
Example:
docker run -e BASE_URL="you-custom-url.domain" -e ALIAS_URL="alias.domain" <image tag/id>
The application issues certificates for:
"$BASE_URL"
"*.$BASE_URL"
"$ALIAS_URL"
"*.$ALIAS_URL
The application provides $ALIAS_URL
variable for checking alias mode.
To do it create CNAME recordset on _acme-challenge.$ALIAS_URL.
with record containing domain which has to be used for obtaining certificate.
To avoid false-positives make sure that service account you are using with the application has NO permission
to modify zone resources for alias domain (view permission may be required).
Testing alias mode is possible thanks to LEGO_EXPERIMENTAL_CNAME_SUPPORT=true
environment variable.