This is a mock DNS provider for Ferron, demonstrating how to create a custom DNS provider for ACME with Ferron.
auto_tls_challenge "dns-01" provider="mock"None
To compile Ferron with this provider, first clone the Ferron repository:
git clone https://github.com/ferronweb/ferron.git -b develop-2.x
cd ferronThen, copy the ferron-build.yaml file to ferron-build-override.yaml:
cp ferron-build.yaml ferron-build-override.yamlAfter that, add the following line to the ferron-build-override.yaml file:
dns:
# Other DNS providers...
- git: https://github.com/ferronweb/ferron-dns-mock.git
id: mock
crate: ferron-dns-mock
provider: MockDnsProviderAfter modifying the ferron-build-override.yaml file, you can compile Ferron with this module by running the following command:
make buildOr if you're on Windows:
powershell -ExecutionPolicy Bypass .\build.ps1 BuildYou can then package it in a ZIP archive using the following command:
make packageOr if you're on Windows:
powershell -ExecutionPolicy Bypass .\build.ps1 PackageThe ZIP archive will be created in the dist directory, and can be installed using Ferron installer.