feat: add gatus entry for each subdomain
This commit is contained in:
parent
fe11ecea2a
commit
48315cfb8e
25 changed files with 464 additions and 108 deletions
|
|
@ -1,13 +1,15 @@
|
|||
let
|
||||
port = 5020;
|
||||
certloc = "/var/lib/acme/fi33.buzz";
|
||||
hostname = "send.fi33.buzz";
|
||||
url = "https://${hostname}";
|
||||
in
|
||||
{
|
||||
services = {
|
||||
send = {
|
||||
enable = true;
|
||||
inherit port;
|
||||
baseUrl = "https://send.fi33.buzz";
|
||||
baseUrl = url;
|
||||
environment = {
|
||||
DEFAULT_EXPIRE_SECONDS = 360;
|
||||
EXPIRE_TIMES_SECONDS = "360";
|
||||
|
|
@ -18,7 +20,21 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts."send.fi33.buzz".extraConfig = ''
|
||||
gatus.settings.endpoints = [
|
||||
{
|
||||
name = "Send";
|
||||
group = "Public Services";
|
||||
inherit url;
|
||||
interval = "5m";
|
||||
conditions = [
|
||||
"[STATUS] == 200"
|
||||
"[CONNECTED] == true"
|
||||
"[RESPONSE_TIME] < 500"
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
caddy.virtualHosts.${hostname}.extraConfig = ''
|
||||
reverse_proxy localhost:${toString port}
|
||||
tls ${certloc}/cert.pem ${certloc}/key.pem {
|
||||
protocols tls1.3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue