2024-03-24 14:48:49 +00:00
|
|
|
{pkgs, ...}: {
|
2023-09-02 03:22:33 +00:00
|
|
|
services.caddy = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts = {
|
|
|
|
"jolheiser.com" = {
|
|
|
|
extraConfig = ''
|
2023-09-21 16:12:12 +00:00
|
|
|
handle_path /.well-known/webfinger {
|
2023-09-21 17:32:59 +00:00
|
|
|
header Content-Type application/jrd+json
|
|
|
|
respond ${builtins.toJSON {
|
|
|
|
subject = "acct:john@jolheiser.com";
|
|
|
|
links = [
|
|
|
|
{
|
|
|
|
rel = "http://openid.net/specs/connect/1.0/issuer";
|
2024-02-29 02:40:31 +00:00
|
|
|
href = "https://auth.jolheiser.com";
|
2023-09-21 17:32:59 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
}}
|
2023-09-21 16:12:12 +00:00
|
|
|
}
|
2023-09-02 14:38:14 +00:00
|
|
|
handle_path /bennet* {
|
|
|
|
root * /srv/bennet/src
|
|
|
|
file_server
|
|
|
|
}
|
2023-10-15 20:07:13 +00:00
|
|
|
handle /resume* {
|
|
|
|
root * ${pkgs.jolheiser.resume}
|
|
|
|
rewrite /resume /resume.pdf
|
|
|
|
file_server
|
|
|
|
}
|
2023-09-02 14:38:14 +00:00
|
|
|
handle {
|
2023-09-24 06:28:57 +00:00
|
|
|
root * ${pkgs.jolheiser.website}
|
2023-09-02 14:38:14 +00:00
|
|
|
file_server
|
|
|
|
}
|
2023-09-02 03:22:33 +00:00
|
|
|
'';
|
|
|
|
serverAliases = ["www.jolheiser.com"];
|
|
|
|
};
|
|
|
|
"go.jolheiser.com" = {
|
2023-12-22 00:53:37 +00:00
|
|
|
extraConfig = ''
|
|
|
|
header Content-Type text/html
|
|
|
|
respond /* `<html><head>
|
|
|
|
<meta name="go-import" content="go.jolheiser.com{uri} git https://git.jojodev.com/jolheiser{uri}.git">
|
|
|
|
<meta http-equiv="refresh" content="3; url=https://pkg.go.dev/go.jolheiser.com{uri}" />
|
2023-09-02 03:22:33 +00:00
|
|
|
</head><body>
|
2023-12-22 00:53:37 +00:00
|
|
|
Redirecting to <a href="https://pkg.go.dev/go.jolheiser.com{uri}">https://pkg.go.dev/go.jolheiser.com{uri}</a>
|
2023-09-02 03:22:33 +00:00
|
|
|
</body></html>`
|
2023-12-22 00:53:37 +00:00
|
|
|
'';
|
2023-09-02 03:22:33 +00:00
|
|
|
};
|
2024-03-19 03:06:34 +00:00
|
|
|
"git.jolheiser.com".extraConfig = ''
|
|
|
|
reverse_proxy localhost:8449
|
|
|
|
'';
|
|
|
|
"social.jolheiser.com".extraConfig = ''
|
|
|
|
reverse_proxy localhost:4686
|
|
|
|
'';
|
|
|
|
"auth.jolheiser.com".extraConfig = ''
|
|
|
|
reverse_proxy localhost:2884
|
|
|
|
'';
|
|
|
|
"todo.jolheiser.com".extraConfig = ''
|
|
|
|
reverse_proxy localhost:8636
|
|
|
|
'';
|
2024-03-24 14:48:49 +00:00
|
|
|
"recipes.jolheiser.com".extraConfig = ''
|
|
|
|
reverse_proxy localhost:3663
|
|
|
|
'';
|
2023-09-02 03:22:33 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|