Skip to content

Instantly share code, notes, and snippets.

@ssv445
Created July 1, 2022 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssv445/b1ae5af56b1ef11ac178c3ff413a8f84 to your computer and use it in GitHub Desktop.
Save ssv445/b1ae5af56b1ef11ac178c3ff413a8f84 to your computer and use it in GitHub Desktop.
Auto SSL for Tenant Domains for a SaaS Service
# for checking if it belongs ot our domain list
{
email myemail@example.test
on_demand_tls {
ask https://api.example.test/check-domain
interval 2m
burst 5
}
}
# for specific domains
app.example.test {
reverse_proxy xxx.xxx.xxx.xxx:4000
}
# for any domains
https:// {
tls {
on_demand
}
handle {
reverse_proxy xxx.xxx.xxx.xxx:5000
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment