Created
July 1, 2022 04:08
-
-
Save ssv445/b1ae5af56b1ef11ac178c3ff413a8f84 to your computer and use it in GitHub Desktop.
Auto SSL for Tenant Domains for a SaaS Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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