- Install minica
brew install minica
cd certs
minica --domains '*.lvh.me'
sudo security add-trusted-cert -d -r trustAsRoot -p ssl -k /Library/Keychains/System.keychain _.lvh.me/cert.pem
You can run steps 3. & 4. for as many other domains as you need for any other services.
We will do basic auth using userFile
in Traefik.
Generate .htpasswd
file.
sudo apt install apache2-utils # Linux
htpasswd -cb .htpasswd admin <your-password>
In docker-compose.production.yaml
file.
traefik.http.routers.rev-proxy.rule=Host(`proxy.example.com`)
In docker-compose.production.yaml
file.
TRAEFIK_CERTIFICATESRESOLVERS_LETSENCRYPTRESOLVER_ACME_EMAIL=john.doe@example.com
Generate new api key and secret for GoDaddy API from - https://developer.godaddy.com/keys
and save them in below files.
- ./secrets/godaddy_api_key
- ./secrets/godaddy_api_secret